Class IngredientHashSet<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.IngredientHashSet<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
HashSet to store instances.
This means that instances are hashed based on their component type's hash method.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class IngredientSet
IngredientSet.ExactIterator<T> -
Constructor Summary
ConstructorsConstructorDescriptionIngredientHashSet(IngredientComponent<T, M> component) IngredientHashSet(IngredientComponent<T, M> component, int expectedSize) IngredientHashSet(IngredientComponent<T, M> component, Iterable<? extends T> iterable) IngredientHashSet(IngredientComponent<T, M> component, HashSet<IngredientInstanceWrapper<T, M>> set) IngredientHashSet(IngredientComponent<T, M> component, Iterator<? extends T> iterable) -
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
-
IngredientHashSet
-
IngredientHashSet
-
IngredientHashSet
-
IngredientHashSet
-
IngredientHashSet
public IngredientHashSet(IngredientComponent<T, M> component, HashSet<IngredientInstanceWrapper<T, M>> set)
-