Class Summary
Wrapper class to make a TByteByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TByteDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TByteFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TByteHashSet conform to the
java.util.Set API.
Wrapper class to make a TByteIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TByteLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TByteObjectHashMap conform to the
java.util.Map API.
Wrapper class to make a TByteShortHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleHashSet conform to the
java.util.Set API.
Wrapper class to make a TDoubleIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleObjectHashMap conform to the
java.util.Map API.
Wrapper class to make a TDoubleShortHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatHashSet conform to the
java.util.Set API.
Wrapper class to make a TFloatIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatObjectHashMap conform to the
java.util.Map API.
Wrapper class to make a TFloatShortHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntHashSet conform to the
java.util.Set API.
Wrapper class to make a TIntIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntObjectHashMap conform to the
java.util.Map API.
Wrapper class to make a TIntShortHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongHashSet conform to the
java.util.Set API.
Wrapper class to make a TLongIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongObjectHashMap conform to the
java.util.Map API.
Wrapper class to make a TLongShortHashMap conform to the
java.util.Map API.
Wrapper class to make a TObjectByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TObjectDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TObjectFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TObjectIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TObjectLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TObjectShortHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortByteHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortDoubleHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortFloatHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortHashSet conform to the
java.util.Set API.
Wrapper class to make a TShortIntHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortLongHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortObjectHashMap conform to the
java.util.Map API.
Wrapper class to make a TShortShortHashMap conform to the
java.util.Map API.
Package gnu.trove.decorator Description
GNU Trove: Decorators for java.util.{Map,Set} compatability
The classes in this package serve to wrap the Trove primitive collections so that they can be used in operations that require a java.util.Map or java.util.Set.
This is form of adaptation is extremely inefficient and so should only be undertaken as a last resort or when you don't care about performance (in which case Trove is probably not appropriate anyway).
The general pattern here is that you "wrap" a Trove collection with the appropriate decorator object to obtain a java.util.Map or Set. The implementations do not retain references to the Objects they accept/return (all calls are delegated to the underlying trove collection), so you should not rely on object identity within those collections.
You may extend the decorator classes to use canonical values if your dataset permits. For some applications, this will help reduce the cost of (un)wrapping primitive values. Note, however, that such datasets are probably small/restricted enough that you should again ask yourself whether Trove is appropriate in the first place. Caveat programmer.
Last modified: Mon Sep 23 22:55:32 PDT 2002