|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| 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.RestrictedMap
com.tangosol.util.RestrictedCollections.RestrictedSortedMap
public static class RestrictedCollections.RestrictedSortedMap
A restricted SortedMap that requires its keys and values to be of specified classes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry |
| Field Summary |
|---|
| Fields inherited from class com.tangosol.util.RestrictedCollections.RestrictedMap |
|---|
m_clzKey, m_clzVal, m_map, m_set |
| Constructor Summary | |
|---|---|
RestrictedCollections.RestrictedSortedMap(Map map,
Class clzKey,
Class clzVal)
Constructor. |
|
| Method Summary | |
|---|---|
Comparator |
comparator()
Returns the comparator associated with this sorted map, or null if it uses its keys' natural ordering. |
Object |
firstKey()
Returns the first (lowest) key currently in this sorted map. |
SortedMap |
headMap(Object toKey)
Returns a view of the portion of this sorted map whose keys are strictly less than toKey. |
Object |
lastKey()
Returns the last (highest) key currently in this sorted map. |
SortedMap |
subMap(Object fromKey,
Object toKey)
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive. |
SortedMap |
tailMap(Object fromKey)
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey. |
| Methods inherited from class com.tangosol.util.RestrictedCollections.RestrictedMap |
|---|
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public RestrictedCollections.RestrictedSortedMap(Map map,
Class clzKey,
Class clzVal)
map - the underlying SortedMapclzKey - the class of keys that may be stored in the MapclzVal - the class of values that may be stored in the Map| Method Detail |
|---|
public Comparator comparator()
comparator in interface SortedMap
public SortedMap subMap(Object fromKey,
Object toKey)
subMap in interface SortedMapfromKey - low endpoint (inclusive) of the subMaptoKey - high endpoint (exclusive) of the subMap
public SortedMap headMap(Object toKey)
headMap in interface SortedMaptoKey - high endpoint (exclusive) of the subMap
public SortedMap tailMap(Object fromKey)
tailMap in interface SortedMapfromKey - low endpoint (inclusive) of the tailMap
public Object firstKey()
firstKey in interface SortedMappublic Object lastKey()
lastKey in interface SortedMap
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||