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.8
    • Constructor Summary

      Constructors 
      Constructor Description
      IntSet()
      simple initialization of a Set
      IntSet​(java.lang.Iterable<java.lang.Integer> toAdd)
      initializes the set with the given integers
    • Constructor Detail

      • IntSet

        public IntSet()
        simple initialization of a Set
      • IntSet

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

      • set

        public void set​(int i)
      • get

        public boolean get​(int i)
      • clear

        public void clear​(int i)