| Modifier and Type | Field and Description |
|---|---|
| pack-priv final IntList | ints
also accessed in BitIntSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | elements()
Implements org. |
| public boolean | has(int
int to check value)Implements org. |
| public IntIterator | |
| public void | merge(IntSet
non-null; other set to merge with.Implements org. other into this set, so this set becomes the
union of the two.
|
| public void | remove(int
int to remove value)Implements org. |
| public String |
| ints | back to summary |
|---|---|
| pack-priv final IntList ints also accessed in BitIntSet | |
| ListIntSet | back to summary |
|---|---|
| public ListIntSet() Constructs an instance | |
| add | back to summary |
|---|---|
| public void add(int value) Implements org. Doc from org. Adds an int to a set
| |
| elements | back to summary |
|---|---|
| public int elements() Implements org. Doc from org. Returns the count of unique elements in this set.
| |
| has | back to summary |
|---|---|
| public boolean has(int value) Implements org. Doc from org. Checks to see if a value is in the set
| |
| iterator | back to summary |
|---|---|
| public IntIterator iterator() Implements org. Doc from org. Iterates the set
| |
| merge | back to summary |
|---|---|
| public void merge(IntSet other) Implements org. Doc from org. Merges
| |
| remove | back to summary |
|---|---|
| public void remove(int value) Implements org. Doc from org. Removes an int from a set.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |