|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.util.ListIntSet
Concrete implementation of IntSet
which uses a linked
list internally.
Constructor Summary | |
ListIntSet()
Constructs the ListIntSet . |
Method Summary | |
Object |
clone()
Clones the IntSet . |
boolean |
contains(int val)
Returns true if the given value is already in this
IntSet . |
boolean |
equals(Object other)
|
int |
hashCode()
|
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 val)
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 . |
String |
toString()
|
void |
union(IntSet other)
All the members of the given other IntSet are added
to this IntSet . |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ListIntSet()
ListIntSet
.Method Detail |
public boolean contains(int val)
IntSet
true
if the given value is already in this
IntSet
.contains
in interface IntSet
public boolean isEmpty()
IntSet
true
if there are no members in this
IntSet
(the empty set).isEmpty
in interface IntSet
public void put(int val)
IntSet
int
value in the IntSet
.put
in interface IntSet
public IntIterator iterator()
IntSet
IntIterator
view of the members in the
IntSet
.iterator
in interface IntSet
public void union(IntSet other)
IntSet
IntSet
are added
to this IntSet
.union
in interface IntSet
public int size()
IntSet
IntSet
.size
in interface IntSet
public IntArray toIntArray()
IntSet
IntArray
.toIntArray
in interface IntSet
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
IntSet
IntSet
.clone
in interface IntSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |