|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.RestrictedCollections.RestrictedCollection
com.tangosol.util.RestrictedCollections.RestrictedSet
com.tangosol.util.RestrictedCollections.RestrictedSortedSet
public static class RestrictedCollections.RestrictedSortedSet
A restricted Set that requires its contents to be of a specified class.
| Field Summary |
|---|
| Fields inherited from class com.tangosol.util.RestrictedCollections.RestrictedCollection |
|---|
m_clz, m_col |
| Constructor Summary | |
|---|---|
RestrictedCollections.RestrictedSortedSet(java.util.SortedSet set,
java.lang.Class clz)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Comparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering. |
java.lang.Object |
first()
Returns the first (lowest) element currently in this sorted set. |
java.util.SortedSet |
headSet(java.lang.Object toElement)
Returns a view of the portion of this sorted set whose elements are strictly less than toElement. |
java.lang.Object |
last()
Returns the last (highest) element currently in this sorted set. |
java.util.SortedSet |
subSet(java.lang.Object fromElement,
java.lang.Object toElement)
Returns a view of the portion of this sorted set whose elements range from fromElement, inclusive, to toElement, exclusive. |
java.util.SortedSet |
tailSet(java.lang.Object fromElement)
Returns a view of the portion of this sorted set whose elements are greater than or equal to fromElement. |
| Methods inherited from class com.tangosol.util.RestrictedCollections.RestrictedCollection |
|---|
add, addAll, checkObject, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
|---|
public RestrictedCollections.RestrictedSortedSet(java.util.SortedSet set,
java.lang.Class clz)
set - the underlying SortedSetclz - the class of objects that may be stored in the
SortedSet| Method Detail |
|---|
public java.util.Comparator comparator()
comparator in interface java.util.SortedSet
public java.util.SortedSet subSet(java.lang.Object fromElement,
java.lang.Object toElement)
Obeys the general contract of SortedSet.subSet.
subSet in interface java.util.SortedSetfromElement - low endpoint (inclusive) of the subSettoElement - high endpoint (exclusive) of the subSet
public java.util.SortedSet headSet(java.lang.Object toElement)
Obeys the general contract of SortedSet.headSet.
headSet in interface java.util.SortedSettoElement - high endpoint (exclusive) of the headSet
public java.util.SortedSet tailSet(java.lang.Object fromElement)
Obeys the general contract of SortedSet.tailSet.
tailSet in interface java.util.SortedSetfromElement - low endpoint (inclusive) of the tailSet
public java.lang.Object first()
first in interface java.util.SortedSetNoSuchElementException - sorted set is emptypublic java.lang.Object last()
last in interface java.util.SortedSetNoSuchElementException - sorted set is empty
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||