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
,SequencedMap
,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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
Fields inherited from class com.tangosol.util.RestrictedCollections.RestrictedMap
m_clzKey, m_clzVal, m_map, m_set
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the comparator associated with this sorted map, or null if it uses its keys' natural ordering.firstKey()
Returns the first (lowest) key currently in this sorted map.Returns a view of the portion of this sorted map whose keys are strictly less than toKey.lastKey()
Returns the last (highest) key currently in this sorted map.Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.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
Methods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
RestrictedSortedMap
Constructor.- Parameters:
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 Details
-
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
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
Returns a view of the portion of this sorted map whose keys are strictly less than toKey. -
tailMap
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey. -
firstKey
Returns the first (lowest) key currently in this sorted map. -
lastKey
Returns the last (highest) key currently in this sorted map.
-