Class ClassToExternalizerMap
- java.lang.Object
-
- org.infinispan.marshall.core.impl.ClassToExternalizerMap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceClassToExternalizerMap.IdToExternalizerMap
-
Constructor Summary
Constructors Constructor Description ClassToExternalizerMap()Construct a new instance with an initial capacity of 64 and a load factor of0.5.ClassToExternalizerMap(float loadFactor)Construct a new instance with the given load factor and an initial capacity of 64.ClassToExternalizerMap(int initialCapacity)Construct a new instance with the given initial capacity and a load factor of0.5.ClassToExternalizerMap(int initialCapacity, float loadF)Construct a new instance with the given initial capacity and load factor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()org.infinispan.commons.marshall.AdvancedExternalizerget(Class key)Get a value from the map.voidput(Class key, org.infinispan.commons.marshall.AdvancedExternalizer value)Put a value into the map.ClassToExternalizerMap.IdToExternalizerMapreverseMap()ClassToExternalizerMap.IdToExternalizerMapreverseMap(int maxId)StringtoString()Get a string summary representation of this map.
-
-
-
Constructor Detail
-
ClassToExternalizerMap
public ClassToExternalizerMap(int initialCapacity, float loadF)Construct a new instance with the given initial capacity and load factor.- Parameters:
initialCapacity- the initial capacityloadF- the load factor
-
ClassToExternalizerMap
public ClassToExternalizerMap(float loadFactor)
Construct a new instance with the given load factor and an initial capacity of 64.- Parameters:
loadFactor- the load factor
-
ClassToExternalizerMap
public ClassToExternalizerMap(int initialCapacity)
Construct a new instance with the given initial capacity and a load factor of0.5.- Parameters:
initialCapacity- the initial capacity
-
ClassToExternalizerMap
public ClassToExternalizerMap()
Construct a new instance with an initial capacity of 64 and a load factor of0.5.
-
-
Method Detail
-
get
public org.infinispan.commons.marshall.AdvancedExternalizer get(Class key)
Get a value from the map.- Parameters:
key- the key- Returns:
- the map value at the given key, or null if it's not found
-
put
public void put(Class key, org.infinispan.commons.marshall.AdvancedExternalizer value)
Put a value into the map. Any previous mapping is discarded silently.- Parameters:
key- the keyvalue- the value to store
-
clear
public void clear()
-
toString
public String toString()
Get a string summary representation of this map.
-
reverseMap
public ClassToExternalizerMap.IdToExternalizerMap reverseMap()
-
reverseMap
public ClassToExternalizerMap.IdToExternalizerMap reverseMap(int maxId)
-
-