| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | bits
also accessed in ListIntSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | elements()
Implements org. |
| private void | ensureCapacity(int
>= 0; value to representEnsures that the bit set has the capacity to represent the given value. |
| 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 |
| bits | back to summary |
|---|---|
| pack-priv int[] bits also accessed in ListIntSet | |
| BitIntSet | back to summary |
|---|---|
| public BitIntSet(int max) 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.
| |
| ensureCapacity | back to summary |
|---|---|
| private void ensureCapacity(int value) Ensures that the bit set has the capacity to represent the given value.
| |
| 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.
| |