Class ClassToExternalizerMap
java.lang.Object
org.infinispan.marshall.core.impl.ClassToExternalizerMap
An efficient identity object map whose keys are
Class objects and
whose values are AdvancedExternalizer instances.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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
Modifier and TypeMethodDescriptionvoidclear()org.infinispan.commons.marshall.AdvancedExternalizerGet a value from the map.voidPut a value into the map.reverseMap(int maxId) toString()Get a string summary representation of this map.
-
Constructor Details
-
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 Details
-
get
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
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
Get a string summary representation of this map. -
reverseMap
-
reverseMap
-