Class TByteIntMapDecorator

  • All Implemented Interfaces:
    Externalizable, Serializable, Cloneable, Map<Byte,Integer>


    public class TByteIntMapDecorator
    extends AbstractMap<Byte,Integer>
    implements Map<Byte,Integer>, Externalizable, Cloneable
    Wrapper class to make a TByteIntMap conform to the java.util.Map API. This class simply decorates an underlying TByteIntMap and translates the Object-based APIs into their Trove primitive analogs.

    Note that wrapping and unwrapping primitive values is extremely inefficient. If possible, users of this class should override the appropriate methods in this class and use a table of canonical values.

    Created: Mon Sep 23 22:07:40 PDT 2002
    See Also:
    Serialized Form
    • Field Detail

      • _map

        protected TByteIntMap _map
        the wrapped primitive map
    • Constructor Detail

      • TByteIntMapDecorator

        public TByteIntMapDecorator()
        FOR EXTERNALIZATION ONLY!!
      • TByteIntMapDecorator

        public TByteIntMapDecorator(TByteIntMap map)
        Creates a wrapper that decorates the specified primitive map.
        Parameters:
        map - the TByteIntMap to wrap.