Class IngredientTreeSet<T,M>
java.lang.Object
org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionAdapter<T,M>
org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionCollectionWrappedAdapter<T,M,Set<IngredientInstanceWrapper<T,M>>>
org.cyclops.cyclopscore.ingredient.collection.IngredientSet<T,M>
org.cyclops.cyclopscore.ingredient.collection.IngredientTreeSet<T,M>
- Type Parameters:
T
- The instance type.M
- The matching condition parameter.
- All Implemented Interfaces:
Iterable<T>
,IIngredientCollection<T,
,M> IIngredientCollectionLike<T,
,M, T> IIngredientCollectionMutable<T,
,M> IIngredientSet<T,
,M> IIngredientSetMutable<T,
M>
An ingredient list collection that internally uses an
TreeSet
to store instances.
This means that instances are automatically ordered based on their component type's comparator.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientSet
IngredientSet.ExactIterator<T>
-
Constructor Summary
ConstructorDescriptionIngredientTreeSet
(IngredientComponent<T, M> component) IngredientTreeSet
(IngredientComponent<T, M> component, Iterable<? extends T> iterable) IngredientTreeSet
(IngredientComponent<T, M> component, Iterator<? extends T> iterable) IngredientTreeSet
(IngredientComponent<T, M> component, TreeSet<IngredientInstanceWrapper<T, M>> set) -
Method Summary
Methods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientSet
contains, count, equals, iterator, removeAll
Methods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionCollectionWrappedAdapter
add, clear, contains, getCollection, iterator, remove, size, wrap
Methods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionAdapter
getComponent, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollection
contains, containsAll, containsAll, parallelStream, stream, toArray
Methods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollectionLike
getComponent, hashCode, isEmpty, size, toString
Methods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollectionMutable
add, addAll, clear, remove, removeAll, removeAll
Methods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientSet
spliterator
-
Constructor Details
-
IngredientTreeSet
-
IngredientTreeSet
-
IngredientTreeSet
-
IngredientTreeSet
public IngredientTreeSet(IngredientComponent<T, M> component, TreeSet<IngredientInstanceWrapper<T, M>> set)
-