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 IngredientMapWrappedAdapter
clear, containsValue, get, getCollection, iterator, keySet, put, remove, size, values, wrapMethods inherited from class IngredientMapAdapter
entrySet, equals, getAll, getComponent, hashCode, iterator, keySet, removeAll, toStringMethods inherited from interface IIngredientCollectionLike
isEmptyMethods inherited from interface IIngredientMap
containsKey, containsKey, containsKeyAll, containsKeyAll, countKeyMethods inherited from interface IIngredientMapMutable
putAll, removeAll, removeAllMethods inherited from interface 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)
-