|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IntSet
Set of integers; not necessary mutable TODO: extract a smaller interface?
| Method Summary | |
|---|---|
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()
|
| Method Detail |
|---|
boolean contains(int i)
i -
boolean containsAny(IntSet set)
IntSet intersection(IntSet that)
boolean isEmpty()
int size()
IntIterator intIterator()
void foreach(IntSetAction action)
action -
void foreachExcluding(IntSet X,
IntSetAction action)
action - int max()
boolean sameValue(IntSet that)
this has the same value as
that.boolean isSubset(IntSet that)
this is a subset of that.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||