|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IntSet
A set of integers
| Method Summary | |
|---|---|
void |
add(int value)
Adds an int to a set |
int |
elements()
Returns the count of unique elements in this set. |
boolean |
has(int value)
Checks to see if a value is in the set |
IntIterator |
iterator()
Iterates the set |
void |
merge(IntSet other)
Merges other into this set, so this set becomes the
union of the two. |
void |
remove(int value)
Removes an int from a set. |
| Method Detail |
|---|
void add(int value)
value - int to addvoid remove(int value)
value - int to removeboolean has(int value)
value - int to check
void merge(IntSet other)
other into this set, so this set becomes the
union of the two.
other - non-null; other set to merge with.int elements()
> = 0; count of unique elementsIntIterator iterator()
non-null; a set iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||