Class TLongIntMapDecorator

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


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

      • TLongIntMapDecorator

        public TLongIntMapDecorator()
        FOR EXTERNALIZATION ONLY!!
      • TLongIntMapDecorator

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