class IntSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
elements |
private int |
size |
Constructor and Description |
---|
IntSet() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addInt(int value) |
(package private) void |
clear() |
(package private) boolean |
containsInt(int value) |
(package private) void |
copyTo(IntSet target)
Copies the contents of this set to the target set.
|
(package private) void |
difference(IntSet dest,
IntSet compared)
Adds to the set "dest" values that in this set but are not in the set
"compared".
|
boolean |
equals(IntSet set) |
boolean |
equals(java.lang.Object o) |
(package private) int |
get(int index) |
private int |
getIndex(int value) |
(package private) boolean |
isEmpty() |
(package private) void |
removeInt(int value) |
(package private) int |
size() |
java.lang.String |
toString() |
void addInt(int value)
void removeInt(int value)
boolean containsInt(int value)
private int getIndex(int value)
int get(int index)
void difference(IntSet dest, IntSet compared)
void clear()
int size()
boolean isEmpty()
void copyTo(IntSet target)
public boolean equals(IntSet set)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object