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 IntSetpublic IntSet intersection(IntSet that)
IntSetintersection in interface IntSetpublic IntSet union(IntSet that)
IntSetpublic boolean isEmpty()
public int size()
public IntIterator intIterator()
intIterator in interface IntSetpublic void foreach(IntSetAction action)
IntSetpublic void foreachExcluding(IntSet X, IntSetAction action)
IntSetforeachExcluding in interface IntSetpublic boolean sameValue(IntSet that)