Class FilteredIngredientMapIterator<T,M,V>

java.lang.Object
org.cyclops.cyclopscore.ingredient.collection.FilteredIngredientMapIterator<T,M,V>
Type Parameters:
T - The instance type.
M - The matching condition parameter.
V - The value type.
All Implemented Interfaces:
Iterator<Map.Entry<T,V>>

public class FilteredIngredientMapIterator<T,M,V> extends Object implements Iterator<Map.Entry<T,V>>
An iterator that filters over instance map entries based on an instance with a match condition.
  • Constructor Details

    • FilteredIngredientMapIterator

      public FilteredIngredientMapIterator(Iterator<Map.Entry<T,V>> iterator, IIngredientMatcher<T,M> matcher, T instance, M matchCondition)
      Create a new instance.
      Parameters:
      iterator - An iterator with instances.
      matcher - A matcher for the type of instances.
      instance - An instance to match.
      matchCondition - A match condition to filter by.
  • Method Details