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 org.cyclops.cyclopscore.ingredient.collection.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 org.cyclops.cyclopscore.ingredient.collection.IngredientSet
contains, count, equals, iterator, removeAllMethods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionCollectionWrappedAdapter
add, clear, contains, getCollection, iterator, remove, size, wrapMethods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionAdapter
getComponent, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollection
contains, containsAll, containsAll, parallelStream, stream, toArrayMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollectionLike
getComponent, hashCode, isEmpty, size, toStringMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollectionMutable
add, addAll, clear, remove, removeAll, removeAllMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientSet
spliterator
-
Constructor Details
-
IngredientHashSet
-
IngredientHashSet
-
IngredientHashSet
-
IngredientHashSet
-
IngredientHashSet
public IngredientHashSet(IngredientComponent<T, M> component, HashSet<IngredientInstanceWrapper<T, M>> set)
-