|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCompositeSortedSet<T>
public abstract class CompositeSortedSet<T>
An Abstract Class for SortedSets composed from two sets
| Constructor Summary | |
|---|---|
CompositeSortedSet(SortedSet<T> setA,
SortedSet<T> setB)
Constructs a new CompositeSortedSet |
|
| Method Summary | |
|---|---|
T |
getMaximum()
Return the maximum element in this set. |
T |
getMinimum()
Return the minimum element in this set. |
boolean |
isEmpty()
Return true iff the set is empty. |
int |
size()
Return the size of this set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface SortedSet |
|---|
contains, iterator |
| Constructor Detail |
|---|
public CompositeSortedSet(SortedSet<T> setA,
SortedSet<T> setB)
SortedSet - setA, SortedSet setB| Method Detail |
|---|
public int size()
size in interface SortedSet<T>public boolean isEmpty()
isEmpty in interface SortedSet<T>public T getMinimum()
getMinimum in interface SortedSet<T>public T getMaximum()
getMaximum in interface SortedSet<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||