|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IntSet
abstracts a mathematical set of integers. Sets
are generally expected to be Cloneable
.
Method Summary | |
Object |
clone()
Clones the IntSet . |
boolean |
contains(int value)
Returns true if the given value is already in this
IntSet . |
boolean |
isEmpty()
Returns true if there are no members in this
IntSet (the empty set). |
IntIterator |
iterator()
Returns an IntIterator view of the members in the
IntSet . |
void |
put(int value)
Puts the given int value in the IntSet . |
int |
size()
Returns the number of members in this IntSet . |
IntArray |
toIntArray()
Returns the list of set members as an IntArray . |
void |
union(IntSet other)
All the members of the given other IntSet are added
to this IntSet . |
Method Detail |
public void put(int value)
int
value in the IntSet
.public IntIterator iterator()
IntIterator
view of the members in the
IntSet
.public void union(IntSet other)
IntSet
are added
to this IntSet
.public boolean isEmpty()
true
if there are no members in this
IntSet
(the empty set).public int size()
IntSet
.public boolean contains(int value)
true
if the given value is already in this
IntSet
.public IntArray toIntArray()
IntArray
.public Object clone() throws CloneNotSupportedException
IntSet
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |