Class TObjectIntMapDecorator<K>

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

public class TObjectIntMapDecorator<K> extends AbstractMap<K,Integer> implements Map<K,Integer>, Externalizable, Cloneable
Wrapper class to make a TObjectIntMap conform to the java.util.Map API. This class simply decorates an underlying TObjectIntMap 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

  • Constructor Details

    • TObjectIntMapDecorator

      public TObjectIntMapDecorator()
      FOR EXTERNALIZATION ONLY!!
    • TObjectIntMapDecorator

      public TObjectIntMapDecorator(TObjectIntMap<K> map)
      Creates a wrapper that decorates the specified primitive map.
      Parameters:
      map - the TObjectIntMap to wrap.
  • Method Details