Class TIntByteMapDecorator

java.lang.Object
java.util.AbstractMap<Integer,Byte>
gnu.trove.decorator.TIntByteMapDecorator
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Map<Integer,Byte>

public class TIntByteMapDecorator extends AbstractMap<Integer,Byte> implements Map<Integer,Byte>, Externalizable, Cloneable
Wrapper class to make a TIntByteMap conform to the java.util.Map API. This class simply decorates an underlying TIntByteMap 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 TIntByteMap _map
      the wrapped primitive map
  • Constructor Details

    • TIntByteMapDecorator

      public TIntByteMapDecorator()
      FOR EXTERNALIZATION ONLY!!
    • TIntByteMapDecorator

      public TIntByteMapDecorator(TIntByteMap map)
      Creates a wrapper that decorates the specified primitive map.
      Parameters:
      map - the TIntByteMap to wrap.
  • Method Details