Package com.tangosol.util
Class RestrictedCollections.RestrictedSortedMap
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.util.RestrictedCollections.RestrictedMap
-
- com.tangosol.util.RestrictedCollections.RestrictedSortedMap
-
- All Implemented Interfaces:
Serializable
,Map
,SortedMap
- Enclosing class:
- RestrictedCollections
public static class RestrictedCollections.RestrictedSortedMap extends RestrictedCollections.RestrictedMap implements SortedMap, Serializable
A restricted SortedMap that requires its keys and values to be of specified classes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.RestrictedCollections.RestrictedMap
m_clzKey, m_clzVal, m_map, m_set
-
-
Constructor Summary
Constructors Constructor Description RestrictedSortedMap(Map map, Class clzKey, Class clzVal)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
-
-
-
Method Detail
-
comparator
public Comparator comparator()
Returns the comparator associated with this sorted map, or null if it uses its keys' natural ordering.- Specified by:
comparator
in interfaceSortedMap
- Returns:
- the comparator associated with this sorted map, or null if it uses its keys' natural ordering
-
subMap
public 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. Obeys the general contract of SortedMap.subMap.
-
headMap
public SortedMap headMap(Object toKey)
Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
-
tailMap
public SortedMap tailMap(Object fromKey)
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
-
firstKey
public Object firstKey()
Returns the first (lowest) key currently in this sorted map.
-
-