|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.dto.list.ElementSet
This class represents a set of Element
s.
Constructor Summary | |
ElementSet()
Constructs an empty element set. |
|
ElementSet(Element[] elements)
Constructs an element set. |
|
ElementSet(ElementList element)
Constructs an element set from all operands of an element. |
|
ElementSet(ElementSet set)
Constructs an element set. |
Method Summary | |
ElementSet |
add(Element element)
Add an element to set. |
boolean |
contains(Element element)
Is element in set? |
boolean |
equals(Object obj)
|
int |
hashCode()
|
ElementSet |
intersection(ElementSet set)
Build the intersection. |
boolean |
isEmpty()
Is set empty? |
boolean |
isSubset(ElementSet set)
Is set a subset of this set? |
ElementSet |
minus(ElementSet set)
Remove elements from another ElementSet from this set.
|
ElementSet |
newDelta(ElementSet set)
Return all elements that are only in one of both sets. |
ElementSet |
newIntersection(ElementSet set)
Build a new intersection. |
ElementSet |
remove(Element element)
Remove an element from set. |
String |
toString()
|
ElementSet |
union(ElementSet set)
Add elements from another ElementSet to this set.
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ElementSet()
public ElementSet(Element[] elements)
elements
- the elements to put into the set
IllegalArgumentException
- if elements
was a NullPointerpublic ElementSet(ElementSet set)
set
- contains the elements to put into the set
IllegalArgumentException
- if set
was a
NullPointerpublic ElementSet(ElementList element)
element
- contains the elements to put into the set
(without the operator)
IllegalArgumentException
- if element
was a
NullPointer or was an atom.Method Detail |
public final boolean contains(Element element)
element
- element to check for.
element
in this set?
IllegalArgumentException
- if the element was a
NullPointerpublic final boolean isEmpty()
public final boolean isSubset(ElementSet set)
set
a subset of this set?
set
- set to check for.
set
a subset of this set?
IllegalArgumentException
- if the set was a NullPointerpublic final ElementSet add(Element element)
element
}
element
- element to put into the set
this
set changed?
IllegalArgumentException
- if the element was a
NullPointerpublic final ElementSet union(ElementSet set)
ElementSet
to this set.
After this method this object is the union of the two sets.
set
- add all elements that are here
this
set changed?
IllegalArgumentException
- if the set was a
NullPointerpublic final ElementSet remove(Element element)
element
- Element to remove from the set
this
set changed?
IllegalArgumentException
- if the element was a
NullPointerpublic final ElementSet minus(ElementSet set)
ElementSet
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
set changed?
IllegalArgumentException
- if the set was a
NullPointerpublic final ElementSet intersection(ElementSet set)
set
- check for these elements
this
set changed?
IllegalArgumentException
- if the set was a
NullPointerpublic final ElementSet newIntersection(ElementSet set)
set
- check for these elements
this
set changed?
IllegalArgumentException
- if the set was a
NullPointerpublic final ElementSet newDelta(ElementSet set)
set
- remove all elements that are in this set from
this
this
set changed?
IllegalArgumentException
- if the set was a
NullPointerpublic final boolean equals(Object obj)
public final int hashCode()
public final String toString()
|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |