Class TIntHashSetDecorator

  • All Implemented Interfaces:
    Iterable<Integer>, Collection<Integer>, Set<Integer>


    public class TIntHashSetDecorator
    extends AbstractSet<Integer>
    implements Set<Integer>
    Wrapper class to make a TIntHashSet conform to the java.util.Set API. This class simply decorates an underlying TIntHashSet 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: Tue Sep 24 22:08:17 PDT 2002
    • Field Detail

      • _set

        protected TIntHashSet _set
        the wrapped primitive set
    • Constructor Detail

      • TIntHashSetDecorator

        public TIntHashSetDecorator(TIntHashSet set)
        Creates a wrapper that decorates the specified primitive set.