public class EmptyIntSet extends Object implements IntSet
Modifier and Type | Field and Description |
---|---|
static EmptyIntSet |
instance |
Constructor and Description |
---|
EmptyIntSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int i) |
boolean |
containsAny(IntSet set) |
void |
foreach(IntSetAction action)
Invoke an action on each element of the Set
|
void |
foreachExcluding(IntSet X,
IntSetAction action)
Invoke an action on each element of the Set, excluding elements of Set X
|
IntSet |
intersection(IntSet that)
This implementation must not despoil the original value of "this"
|
IntIterator |
intIterator() |
boolean |
isEmpty() |
boolean |
isSubset(IntSet that) |
int |
max() |
boolean |
sameValue(IntSet that) |
int |
size() |
IntSet |
union(IntSet that)
This implementation must not despoil the original value of "this"
|
public static EmptyIntSet instance
public boolean contains(int i)
public boolean containsAny(IntSet set)
containsAny
in interface IntSet
public IntSet intersection(IntSet that)
IntSet
intersection
in interface IntSet
public IntSet union(IntSet that)
IntSet
public boolean isEmpty()
public int size()
public IntIterator intIterator()
intIterator
in interface IntSet
public void foreach(IntSetAction action)
IntSet
public void foreachExcluding(IntSet X, IntSetAction action)
IntSet
foreachExcluding
in interface IntSet
public boolean sameValue(IntSet that)