|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.util.ImmutableIntSet
IntSet
wrapper implementation which throws
UnsupportedMethodOperation
exceptions when the set is
attempted to be changed.
Constructor Summary | |
ImmutableIntSet(IntSet set)
Constructs the ImmutableIntSet wrapping the given
set. |
Method Summary | |
Object |
clone()
Clones the IntSet . |
boolean |
contains(int id)
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 id)
Puts the given int value in the IntSet . |
void |
put(IntIterator iter)
|
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 ImmutableIntSet(IntSet set)
ImmutableIntSet
wrapping the given
set.Method Detail |
public boolean contains(int id)
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 id)
IntSet
int
value in the IntSet
.put
in interface IntSet
public void put(IntIterator iter)
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 boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public IntArray toIntArray()
IntSet
IntArray
.toIntArray
in interface IntSet
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 |