Class IntSet


public final class IntSet extends IntTrie<IntTrie.SimpleNode>
an efficient Set for unboxed int. It is just a subclass for the IntTrie, with a more convenient interface (no generics, simpler constructor). It also provides a part of the interface of BitSet.
Version:
4.9
  • Constructor Details

    • IntSet

      public IntSet()
      simple initialization of a Set
    • IntSet

      public IntSet(Iterable<Integer> toAdd)
      initializes the set with the given integers
      Parameters:
      toAdd - the collection of integers to add
  • Method Details

    • set

      public void set(int i)
    • get

      public boolean get(int i)
    • clear

      public void clear(int i)