Class IngredientHashMap<T,M,V>
java.lang.Object
org.cyclops.cyclopscore.ingredient.collection.IngredientMapAdapter<T,M,V>
org.cyclops.cyclopscore.ingredient.collection.IngredientMapWrappedAdapter<T,M,V,HashMap<IngredientInstanceWrapper<T,M>,V>>
org.cyclops.cyclopscore.ingredient.collection.IngredientHashMap<T,M,V>
- Type Parameters:
T- The instance type.M- The matching condition parameter.V- The type of mapped values.
- All Implemented Interfaces:
Iterable<Map.Entry<T,,V>> IIngredientCollectionLike<T,,M, Map.Entry<T, V>> IIngredientMap<T,,M, V> IIngredientMapMutable<T,M, V>
public class IngredientHashMap<T,M,V>
extends IngredientMapWrappedAdapter<T,M,V,HashMap<IngredientInstanceWrapper<T,M>,V>>
An ingredient map collection that internally uses an
HashMap to store instances.
This means that key instances are hashed based on their component type's hash method.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientHashMap(IngredientComponent<T, M> component) IngredientHashMap(IngredientComponent<T, M> component, int expectedSize) IngredientHashMap(IngredientComponent<T, M> component, HashMap<IngredientInstanceWrapper<T, M>, V> map) IngredientHashMap(IngredientComponent<T, M> component, IIngredientMap<? extends T, M, ? extends V> map) -
Method Summary
Methods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientMapWrappedAdapter
clear, containsValue, get, getCollection, iterator, keySet, put, remove, size, values, wrapMethods inherited from class org.cyclops.cyclopscore.ingredient.collection.IngredientMapAdapter
entrySet, equals, getAll, getComponent, hashCode, iterator, keySet, removeAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollectionLike
isEmptyMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientMap
containsKey, containsKey, containsKeyAll, containsKeyAll, countKeyMethods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientMapMutable
putAll, removeAll, removeAllMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IngredientHashMap
-
IngredientHashMap
-
IngredientHashMap
public IngredientHashMap(IngredientComponent<T, M> component, IIngredientMap<? extends T, M, ? extends V> map) -
IngredientHashMap
public IngredientHashMap(IngredientComponent<T, M> component, HashMap<IngredientInstanceWrapper<T, M>, V> map)
-