Package org.jacop.jasat.utils.structures
Class IntSet
java.lang.Object
org.jacop.jasat.utils.structures.IntTrie<IntTrie.SimpleNode>
org.jacop.jasat.utils.structures.IntSet
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.10
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jacop.jasat.utils.structures.IntTrie
IntTrie.Node<E>, IntTrie.SimpleNode
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntSet
public IntSet()simple initialization of a Set -
IntSet
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)
-