|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectil.ac.tau.cs.sw1.sortedset.BinaryOpSortedSet<T>
public abstract class BinaryOpSortedSet<T extends java.lang.Comparable<T>>
Constructor Summary | |
---|---|
BinaryOpSortedSet()
|
Method Summary | |
---|---|
T |
getMaximum()
Return the maximal (highest) element in this set. |
T |
getMinimum()
Return the minimal (lowest) element in this set. |
boolean |
isEmpty()
Return true if this set contains no elements. |
int |
size()
Return the number of elements in this set (its cardinality). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface il.ac.tau.cs.sw1.sortedset.SortedSet |
---|
contains, iterator |
Constructor Detail |
---|
public BinaryOpSortedSet()
Method Detail |
---|
public int size()
SortedSet
size
in interface SortedSet<T extends java.lang.Comparable<T>>
public T getMaximum()
SortedSet
getMaximum
in interface SortedSet<T extends java.lang.Comparable<T>>
public T getMinimum()
SortedSet
getMinimum
in interface SortedSet<T extends java.lang.Comparable<T>>
public boolean isEmpty()
SortedSet
true
if this set contains no elements.
isEmpty
in interface SortedSet<T extends java.lang.Comparable<T>>
true
if this set contains no elements
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |