|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.common.QedeqBoSet
public class QedeqBoSet
This class represents a set of QedeqBos.
| Constructor Summary | |
|---|---|
QedeqBoSet()
Constructs an empty element set. |
|
QedeqBoSet(QedeqBo element)
Constructs an element set. |
|
QedeqBoSet(QedeqBo[] elements)
Constructs an element set. |
|
QedeqBoSet(QedeqBoSet set)
Constructs an element set. |
|
| Method Summary | |
|---|---|
QedeqBoSet |
add(QedeqBo element)
Add an element to set. |
QedeqBoSet |
add(QedeqBoSet set)
Add elements from another QedeqBoSet to this set. |
java.lang.String |
asLongList()
|
java.lang.String |
asShortList()
|
boolean |
contains(QedeqBo element)
Is element in set? |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
QedeqBoSet |
intersection(QedeqBoSet set)
Build the intersection. |
boolean |
isEmpty()
Is this set empty? |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this set. |
QedeqBoSet |
remove(QedeqBo element)
Remove an element from this set. |
QedeqBoSet |
remove(QedeqBoSet set)
Remove elements from another QedeqBoSet from this set. |
int |
size()
Get number of elements. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QedeqBoSet()
public QedeqBoSet(QedeqBo[] elements)
elements - the elements to put into the set
java.lang.IllegalArgumentException - if elements was a NullPointerpublic QedeqBoSet(QedeqBo element)
element - Put this element into the set
java.lang.IllegalArgumentException - if element was a NullPointerpublic QedeqBoSet(QedeqBoSet set)
set - contains the elements to put into the set
java.lang.IllegalArgumentException - if set was a
NullPointer| Method Detail |
|---|
public final boolean contains(QedeqBo element)
element - QedeqBo to check for.
element in this set?
java.lang.IllegalArgumentException - if the element was a
NullPointerpublic final boolean isEmpty()
public final QedeqBoSet add(QedeqBo element)
element}
element - element to put into the set
this.
java.lang.IllegalArgumentException - if the element was a
NullPointerpublic final QedeqBoSet add(QedeqBoSet set)
QedeqBoSet to this set.
After this method this object is the union of the two sets.
set - add all elements that are here
this.
java.lang.IllegalArgumentException - if the set was a
NullPointerpublic final QedeqBoSet remove(QedeqBo element)
element - QedeqBo to remove from the set. Must not be null.
this.
java.lang.IllegalArgumentException - if the element was a
NullPointerpublic final QedeqBoSet remove(QedeqBoSet set)
QedeqBoSet from this set.
After this method this object is the asymmetric set difference of the
two sets: this \ set.
set - Remove all elements that are in this set from
this.
this.
java.lang.IllegalArgumentException - if the set was a
NullPointerpublic final QedeqBoSet intersection(QedeqBoSet set)
set - Check for these elements.
this.
java.lang.IllegalArgumentException - if the set was a
NullPointerpublic final int size()
public java.util.Iterator iterator()
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String asLongList()
public java.lang.String asShortList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||