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.
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 Summary
ConstructorDescriptionFilteredIngredientMapIterator
(Iterator<Map.Entry<T, V>> iterator, IIngredientMatcher<T, M> matcher, T instance, M matchCondition) Create a new instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
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