|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Poset
is a partially ordered set.
PoComparable
Method Summary | |
PoComparator |
comparator()
Return the comparator associated with this partially ordered set, or null if it uses the elements' natural
ordering. |
Set |
directGreaters(Object x)
Obtain the direct greaters of a given object. |
Set |
directLessers(Object x)
Obtain the direct lessers of a given object. |
Poset |
greaters(Object x)
Obtain the greaters of a given object. |
Object |
greatest()
Obtain the greatest element of the set. |
Object |
least()
Obtain the least element of the set. |
Poset |
lessers(Object x)
Obtain the lessers of a given object. |
Set |
maximal()
Obtain the maximal elements of the set. |
Set |
minimal()
Obtain the minimal elements of the set. |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public PoComparator comparator()
null
if it uses the elements' natural
ordering.null
if none is
defined.public Object least()
null
if no least
element exists.NoSuchElementException
- if this set is empty.public Object greatest()
null
if no least
element exists.NoSuchElementException
- if this set is empty.public Set minimal()
NoSuchElementException
- if this set is empty.public Set maximal()
NoSuchElementException
- if this set is empty.public Set directLessers(Object x)
x
- the object for which to obtain the greaters, which may
or may not be in the set.x
.public Set directGreaters(Object x)
x
- the object for which to obtain the greaters, which may
or may not be in the set.x
.public Poset lessers(Object x)
x
- the object for which to obtain the greaters, which may
or may not be in the set.Poset
containing the lessers of
x
.public Poset greaters(Object x)
x
- the object for which to obtain the greaters, which may
or may not be in the set.Poset
containing the greaters of
x
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |