Class TByteIntMapDecorator

java.lang.Object
java.util.AbstractMap<Byte,Integer>
gnu.trove.decorator.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:
  • Field Details

    • _map

      protected TByteIntMap _map
      the wrapped primitive map
  • Constructor Details

    • 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.
  • Method Details