Class ClassToExternalizerMap


  • public final class ClassToExternalizerMap
    extends Object
    An efficient identity object map whose keys are Class objects and whose values are AdvancedExternalizer instances.
    • 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 capacity
        loadF - 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 of 0.5.
        Parameters:
        initialCapacity - the initial capacity
      • ClassToExternalizerMap

        public ClassToExternalizerMap()
        Construct a new instance with an initial capacity of 64 and a load factor of 0.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 key
        value - the value to store
      • clear

        public void clear()
      • toString

        public String toString()
        Get a string summary representation of this map.
        Overrides:
        toString in class Object
        Returns:
        a string representation