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 IngredientSet
IngredientSet.ExactIterator<T> -
Constructor Summary
ConstructorsConstructorDescriptionIngredientTreeSet(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 IngredientCollectionCollectionWrappedAdapter
add, clear, contains, getCollection, iterator, remove, size, wrapMethods inherited from class IngredientCollectionAdapter
getComponent, hashCode, toStringMethods inherited from interface IIngredientCollection
contains, containsAll, containsAll, parallelStream, stream, toArrayMethods inherited from interface IIngredientCollectionLike
getComponent, hashCode, isEmpty, size, toStringMethods inherited from interface IIngredientCollectionMutable
add, addAll, clear, remove, removeAll, removeAllMethods inherited from interface IIngredientSet
spliterator
-
Constructor Details
-
IngredientTreeSet
-
IngredientTreeSet
-
IngredientTreeSet
-
IngredientTreeSet
public IngredientTreeSet(IngredientComponent<T, M> component, TreeSet<IngredientInstanceWrapper<T, M>> set)
-