|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines extends the DoubleSet interface to define sorted sets.
SortedSet| Method Summary | |
boolean |
add(double v)
Adds an element to this set. |
double |
first()
Returns the lowest element of this set. |
DoubleSortedSet |
headSet(double to)
Returns the subset of values lower than a specified value. |
double |
last()
Returns the highest element of this set. |
DoubleSortedSet |
subSet(double from,
double to)
Returns the subset of values lower that a specified value and higher than or equal to another specified value. |
DoubleSortedSet |
tailSet(double from)
Returns the subset of values higher than or equal to a specified value. |
| Methods inherited from interface bak.pcj.DoubleCollection |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize |
| Method Detail |
public boolean add(double v)
add in interface DoubleCollectionv - the element to add to this set.
UnsupportedOperationException - if the operation is not supported by this
set.
IllegalArgumentException - if v is not permitted, because this set
is a subset of another set.DoubleCollection.addAll(DoubleCollection)public double first()
NoSuchElementException - if this set is empty.public DoubleSortedSet headSet(double to)
to - the upper bound of the returned set (not included).
IllegalArgumentException - if to is not permitted
in this set (which can be the case with returned
subsets).public double last()
NoSuchElementException - if this set is empty.
public DoubleSortedSet subSet(double from,
double to)
from - the lower bound of the returned set (included).to - the upper bound of the returned set (not included).
IllegalArgumentException - if from is greater than to;
if from or to is not permitted
in this set (which can be the case with returned
subsets).public DoubleSortedSet tailSet(double from)
from - the lower bound of the returned set (included).
IllegalArgumentException - if from is not permitted
in this set (which can be the case with returned
subsets).
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||