Package com.tangosol.util
Class SafeSortedMap.SubMap
- java.lang.Object
-
- java.util.AbstractMap
-
- com.tangosol.util.SafeSortedMap.SubMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ConcurrentMap
,ConcurrentNavigableMap
,Map
,NavigableMap
,SortedMap
- Enclosing class:
- SafeSortedMap
protected static class SafeSortedMap.SubMap extends AbstractMap implements ConcurrentNavigableMap, Cloneable, Serializable
SubMap delegation to manageSafeSortedMap.NULL
in entry key and/or value.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Method Summary
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, putAll, toString
-
-
-
-
Method Detail
-
clone
public SafeSortedMap.SubMap clone()
- Overrides:
clone
in classAbstractMap
-
containsKey
public boolean containsKey(Object oKey)
- Specified by:
containsKey
in interfaceMap
- Overrides:
containsKey
in classAbstractMap
-
get
public Object get(Object oKey)
- Specified by:
get
in interfaceMap
- Overrides:
get
in classAbstractMap
-
put
public Object put(Object oKey, Object oValue)
- Specified by:
put
in interfaceMap
- Overrides:
put
in classAbstractMap
-
remove
public Object remove(Object oKey)
- Specified by:
remove
in interfaceMap
- Overrides:
remove
in classAbstractMap
-
size
public int size()
- Specified by:
size
in interfaceMap
- Overrides:
size
in classAbstractMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMap
- Overrides:
isEmpty
in classAbstractMap
-
containsValue
public boolean containsValue(Object oValue)
- Specified by:
containsValue
in interfaceMap
- Overrides:
containsValue
in classAbstractMap
-
clear
public void clear()
- Specified by:
clear
in interfaceMap
- Overrides:
clear
in classAbstractMap
-
subMap
public ConcurrentNavigableMap subMap(Object oFromKey, boolean fFromInclusive, Object oToKey, boolean fToInclusive)
- Specified by:
subMap
in interfaceConcurrentNavigableMap
- Specified by:
subMap
in interfaceNavigableMap
-
headMap
public ConcurrentNavigableMap headMap(Object oToKey, boolean fInclusive)
- Specified by:
headMap
in interfaceConcurrentNavigableMap
- Specified by:
headMap
in interfaceNavigableMap
-
tailMap
public ConcurrentNavigableMap tailMap(Object oFromKey, boolean fInclusive)
- Specified by:
tailMap
in interfaceConcurrentNavigableMap
- Specified by:
tailMap
in interfaceNavigableMap
-
comparator
public Comparator comparator()
- Specified by:
comparator
in interfaceSortedMap
-
subMap
public ConcurrentNavigableMap subMap(Object oFromKey, Object oToKey)
- Specified by:
subMap
in interfaceConcurrentNavigableMap
- Specified by:
subMap
in interfaceNavigableMap
- Specified by:
subMap
in interfaceSortedMap
-
headMap
public ConcurrentNavigableMap headMap(Object oToKey)
- Specified by:
headMap
in interfaceConcurrentNavigableMap
- Specified by:
headMap
in interfaceNavigableMap
- Specified by:
headMap
in interfaceSortedMap
-
tailMap
public ConcurrentNavigableMap tailMap(Object oFromKey)
- Specified by:
tailMap
in interfaceConcurrentNavigableMap
- Specified by:
tailMap
in interfaceNavigableMap
- Specified by:
tailMap
in interfaceSortedMap
-
lowerEntry
public Map.Entry lowerEntry(Object oKey)
- Specified by:
lowerEntry
in interfaceNavigableMap
-
lowerKey
public Object lowerKey(Object oKey)
- Specified by:
lowerKey
in interfaceNavigableMap
-
floorEntry
public Map.Entry floorEntry(Object oKey)
- Specified by:
floorEntry
in interfaceNavigableMap
-
floorKey
public Object floorKey(Object oKey)
- Specified by:
floorKey
in interfaceNavigableMap
-
ceilingEntry
public Map.Entry ceilingEntry(Object oKey)
- Specified by:
ceilingEntry
in interfaceNavigableMap
-
ceilingKey
public Object ceilingKey(Object oKey)
- Specified by:
ceilingKey
in interfaceNavigableMap
-
higherEntry
public Map.Entry higherEntry(Object oKey)
- Specified by:
higherEntry
in interfaceNavigableMap
-
higherKey
public Object higherKey(Object oKey)
- Specified by:
higherKey
in interfaceNavigableMap
-
firstEntry
public Map.Entry firstEntry()
- Specified by:
firstEntry
in interfaceNavigableMap
-
lastEntry
public Map.Entry lastEntry()
- Specified by:
lastEntry
in interfaceNavigableMap
-
pollFirstEntry
public Map.Entry pollFirstEntry()
- Specified by:
pollFirstEntry
in interfaceNavigableMap
-
pollLastEntry
public Map.Entry pollLastEntry()
- Specified by:
pollLastEntry
in interfaceNavigableMap
-
descendingMap
public ConcurrentNavigableMap descendingMap()
- Specified by:
descendingMap
in interfaceConcurrentNavigableMap
- Specified by:
descendingMap
in interfaceNavigableMap
-
keySet
public NavigableSet keySet()
- Specified by:
keySet
in interfaceConcurrentNavigableMap
- Specified by:
keySet
in interfaceMap
- Specified by:
keySet
in interfaceSortedMap
- Overrides:
keySet
in classAbstractMap
-
navigableKeySet
public NavigableSet navigableKeySet()
- Specified by:
navigableKeySet
in interfaceConcurrentNavigableMap
- Specified by:
navigableKeySet
in interfaceNavigableMap
-
values
public Collection values()
-
descendingKeySet
public NavigableSet descendingKeySet()
- Specified by:
descendingKeySet
in interfaceConcurrentNavigableMap
- Specified by:
descendingKeySet
in interfaceNavigableMap
-
putIfAbsent
public Object putIfAbsent(Object oKey, Object oValue)
- Specified by:
putIfAbsent
in interfaceConcurrentMap
- Specified by:
putIfAbsent
in interfaceMap
-
getOrDefault
public Object getOrDefault(Object oKey, Object oDefaultValue)
- Specified by:
getOrDefault
in interfaceConcurrentMap
- Specified by:
getOrDefault
in interfaceMap
-
forEach
public void forEach(BiConsumer action)
- Specified by:
forEach
in interfaceConcurrentMap
- Specified by:
forEach
in interfaceMap
-
remove
public boolean remove(Object oKey, Object oValue)
- Specified by:
remove
in interfaceConcurrentMap
- Specified by:
remove
in interfaceMap
-
replace
public boolean replace(Object oKey, Object oOldValue, Object oNewValue)
- Specified by:
replace
in interfaceConcurrentMap
- Specified by:
replace
in interfaceMap
-
replace
public Object replace(Object oKey, Object oValue)
- Specified by:
replace
in interfaceConcurrentMap
- Specified by:
replace
in interfaceMap
-
replaceAll
public void replaceAll(BiFunction function)
- Specified by:
replaceAll
in interfaceConcurrentMap
- Specified by:
replaceAll
in interfaceMap
-
computeIfAbsent
public Object computeIfAbsent(Object oKey, Function mappingFunction)
- Specified by:
computeIfAbsent
in interfaceConcurrentMap
- Specified by:
computeIfAbsent
in interfaceMap
-
computeIfPresent
public Object computeIfPresent(Object oKey, BiFunction remappingFunction)
- Specified by:
computeIfPresent
in interfaceConcurrentMap
- Specified by:
computeIfPresent
in interfaceMap
-
compute
public Object compute(Object oKey, BiFunction remappingFunction)
- Specified by:
compute
in interfaceConcurrentMap
- Specified by:
compute
in interfaceMap
-
merge
public Object merge(Object oKey, Object oValue, BiFunction remappingFunction)
- Specified by:
merge
in interfaceConcurrentMap
- Specified by:
merge
in interfaceMap
-
-