|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.backend.util.VectorSet
Set of small integers represented in arrays.
| Nested Class Summary | |
static class |
VectorSet.Iterator
|
| Constructor Summary | |
VectorSet(int max)
Create a set of numbers which is supposed to be less than max |
|
| Method Summary | |
void |
add(int x)
Add number x to set. |
void |
addAll(NumberSet x)
Add all elements of another NumberSet x to this set. |
void |
addAllTo(NumberSet x)
Add all elements of this set to another NumberSet x. |
void |
clear()
Clear contents of set. |
java.lang.Object |
clone()
Return copy of the object. |
boolean |
contains(int x)
Return true if x is in the set. |
void |
copy(NumberSet x)
Copy another NumberSet x to this object. |
boolean |
equals(java.lang.Object x)
Return true if x is same as this set. |
NumberSet.Iterator |
iterator()
Enumerate all members. |
void |
remove(int x)
Remove number x from set. |
void |
removeAll(NumberSet x)
Remove all elements of another NumberSet x from this set. |
void |
removeAllFrom(NumberSet x)
Remove all elements of this set from another NumberSet x. |
int |
size()
Return the number of elements. |
void |
toArray(int[] a)
Convert to array |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VectorSet(int max)
| Method Detail |
public int size()
size in interface NumberSetpublic void clear()
clear in interface NumberSetpublic void add(int x)
add in interface NumberSetpublic void addAll(NumberSet x)
addAll in interface NumberSetpublic void addAllTo(NumberSet x)
addAllTo in interface NumberSetpublic void remove(int x)
remove in interface NumberSetpublic void removeAll(NumberSet x)
removeAll in interface NumberSetpublic void removeAllFrom(NumberSet x)
removeAllFrom in interface NumberSetpublic boolean contains(int x)
contains in interface NumberSetpublic NumberSet.Iterator iterator()
iterator in interface NumberSetpublic void toArray(int[] a)
toArray in interface NumberSetpublic void copy(NumberSet x)
copy in interface NumberSetpublic boolean equals(java.lang.Object x)
equals in interface NumberSetpublic java.lang.Object clone()
clone in interface NumberSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||