public interface IntSet
| Modifier and Type | Method and Description |
|---|---|
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.
|
void add(int value)
value - int to addvoid remove(int value)
value - int to removeboolean has(int value)
value - int to checkvoid 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 iteratorCopyright © 2020. All Rights Reserved.