Class Short2ReferenceSortedMaps.SynchronizedSortedMap<V>
- java.lang.Object
-
- it.unimi.dsi.fastutil.shorts.Short2ReferenceFunctions.SynchronizedFunction<V>
-
- it.unimi.dsi.fastutil.shorts.Short2ReferenceMaps.SynchronizedMap<V>
-
- it.unimi.dsi.fastutil.shorts.Short2ReferenceSortedMaps.SynchronizedSortedMap<V>
-
- All Implemented Interfaces:
Function<java.lang.Short,V>
,Short2ReferenceFunction<V>
,Short2ReferenceMap<V>
,Short2ReferenceSortedMap<V>
,java.io.Serializable
,java.util.function.Function<java.lang.Short,V>
,java.util.function.IntFunction<V>
,java.util.Map<java.lang.Short,V>
,java.util.SortedMap<java.lang.Short,V>
- Enclosing class:
- Short2ReferenceSortedMaps
public static class Short2ReferenceSortedMaps.SynchronizedSortedMap<V> extends Short2ReferenceMaps.SynchronizedMap<V> implements Short2ReferenceSortedMap<V>, java.io.Serializable
A synchronized wrapper class for sorted maps.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.shorts.Short2ReferenceMap
Short2ReferenceMap.Entry<V>, Short2ReferenceMap.FastEntrySet<V>
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.shorts.Short2ReferenceSortedMap
Short2ReferenceSortedMap.FastSortedEntrySet<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ShortComparator
comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.ObjectSortedSet<java.util.Map.Entry<java.lang.Short,V>>
entrySet()
Deprecated.Please use the corresponding type-specific method instead.java.lang.Short
firstKey()
Deprecated.Please use the corresponding type-specific method instead.short
firstShortKey()
Returns the first (lowest) key currently in this map.Short2ReferenceSortedMap<V>
headMap(short to)
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey
.Short2ReferenceSortedMap<V>
headMap(java.lang.Short to)
Deprecated.Please use the corresponding type-specific method instead.ShortSortedSet
keySet()
java.lang.Short
lastKey()
Deprecated.Please use the corresponding type-specific method instead.short
lastShortKey()
Returns the last (highest) key currently in this map.ObjectSortedSet<Short2ReferenceMap.Entry<V>>
short2ReferenceEntrySet()
Returns a type-specific set view of the mappings contained in this map.Short2ReferenceSortedMap<V>
subMap(short from, short to)
Returns a view of the portion of this sorted map whose keys range fromfromKey
, inclusive, totoKey
, exclusive.Short2ReferenceSortedMap<V>
subMap(java.lang.Short from, java.lang.Short to)
Deprecated.Please use the corresponding type-specific method instead.Short2ReferenceSortedMap<V>
tailMap(short from)
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey
.Short2ReferenceSortedMap<V>
tailMap(java.lang.Short from)
Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from class it.unimi.dsi.fastutil.shorts.Short2ReferenceMaps.SynchronizedMap
compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsValue, equals, forEach, getOrDefault, getOrDefault, hashCode, isEmpty, merge, merge, putAll, putIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, values
-
Methods inherited from class it.unimi.dsi.fastutil.shorts.Short2ReferenceFunctions.SynchronizedFunction
apply, apply, clear, containsKey, containsKey, defaultReturnValue, defaultReturnValue, get, get, put, put, remove, remove, size, toString
-
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, forEach, get, hashCode, isEmpty, put, putAll, remove, replaceAll, size
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2ReferenceFunction
apply, get, put, remove
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2ReferenceMap
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, defaultReturnValue, defaultReturnValue, get, getOrDefault, getOrDefault, merge, merge, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, size
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2ReferenceSortedMap
values
-
-
-
-
Method Detail
-
comparator
public ShortComparator comparator()
Description copied from interface:Short2ReferenceSortedMap
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.Note that this specification strengthens the one given in
SortedMap.comparator()
.- Specified by:
comparator
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
comparator
in interfacejava.util.SortedMap<java.lang.Short,V>
- See Also:
SortedMap.comparator()
-
short2ReferenceEntrySet
public ObjectSortedSet<Short2ReferenceMap.Entry<V>> short2ReferenceEntrySet()
Description copied from interface:Short2ReferenceMap
Returns a type-specific set view of the mappings contained in this map.This method is necessary because there is no inheritance along type parameters: it is thus impossible to strengthen
Map.entrySet()
so that it returns anObjectSet
of type-specific entries (the latter makes it possible to access keys and values with type-specific methods).- Specified by:
short2ReferenceEntrySet
in interfaceShort2ReferenceMap<V>
- Specified by:
short2ReferenceEntrySet
in interfaceShort2ReferenceSortedMap<V>
- Overrides:
short2ReferenceEntrySet
in classShort2ReferenceMaps.SynchronizedMap<V>
- Returns:
- a type-specific set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
entrySet
@Deprecated public ObjectSortedSet<java.util.Map.Entry<java.lang.Short,V>> entrySet()
Deprecated.Please use the corresponding type-specific method instead.Returns a set view of the mappings contained in this map.Note that this specification strengthens the one given in
Map.entrySet()
.- Specified by:
entrySet
in interfacejava.util.Map<java.lang.Short,V>
- Specified by:
entrySet
in interfaceShort2ReferenceMap<V>
- Specified by:
entrySet
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
entrySet
in interfacejava.util.SortedMap<java.lang.Short,V>
- Overrides:
entrySet
in classShort2ReferenceMaps.SynchronizedMap<V>
- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
keySet
public ShortSortedSet keySet()
Description copied from interface:Short2ReferenceMap
Note that this specification strengthens the one given in
Map.keySet()
.- Specified by:
keySet
in interfacejava.util.Map<java.lang.Short,V>
- Specified by:
keySet
in interfaceShort2ReferenceMap<V>
- Specified by:
keySet
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
keySet
in interfacejava.util.SortedMap<java.lang.Short,V>
- Overrides:
keySet
in classShort2ReferenceMaps.SynchronizedMap<V>
- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
-
subMap
public Short2ReferenceSortedMap<V> subMap(short from, short to)
Description copied from interface:Short2ReferenceSortedMap
Returns a view of the portion of this sorted map whose keys range fromfromKey
, inclusive, totoKey
, exclusive.Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object)
.- Specified by:
subMap
in interfaceShort2ReferenceSortedMap<V>
- See Also:
SortedMap.subMap(Object,Object)
-
headMap
public Short2ReferenceSortedMap<V> headMap(short to)
Description copied from interface:Short2ReferenceSortedMap
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey
.Note that this specification strengthens the one given in
SortedMap.headMap(Object)
.- Specified by:
headMap
in interfaceShort2ReferenceSortedMap<V>
- See Also:
SortedMap.headMap(Object)
-
tailMap
public Short2ReferenceSortedMap<V> tailMap(short from)
Description copied from interface:Short2ReferenceSortedMap
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey
.Note that this specification strengthens the one given in
SortedMap.tailMap(Object)
.- Specified by:
tailMap
in interfaceShort2ReferenceSortedMap<V>
- See Also:
SortedMap.tailMap(Object)
-
firstShortKey
public short firstShortKey()
Description copied from interface:Short2ReferenceSortedMap
Returns the first (lowest) key currently in this map.- Specified by:
firstShortKey
in interfaceShort2ReferenceSortedMap<V>
- See Also:
SortedMap.firstKey()
-
lastShortKey
public short lastShortKey()
Description copied from interface:Short2ReferenceSortedMap
Returns the last (highest) key currently in this map.- Specified by:
lastShortKey
in interfaceShort2ReferenceSortedMap<V>
- See Also:
SortedMap.lastKey()
-
firstKey
@Deprecated public java.lang.Short firstKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstKey
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
firstKey
in interfacejava.util.SortedMap<java.lang.Short,V>
-
lastKey
@Deprecated public java.lang.Short lastKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastKey
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
lastKey
in interfacejava.util.SortedMap<java.lang.Short,V>
-
subMap
@Deprecated public Short2ReferenceSortedMap<V> subMap(java.lang.Short from, java.lang.Short to)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object)
.- Specified by:
subMap
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
subMap
in interfacejava.util.SortedMap<java.lang.Short,V>
-
headMap
@Deprecated public Short2ReferenceSortedMap<V> headMap(java.lang.Short to)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.headMap(Object)
.- Specified by:
headMap
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
headMap
in interfacejava.util.SortedMap<java.lang.Short,V>
-
tailMap
@Deprecated public Short2ReferenceSortedMap<V> tailMap(java.lang.Short from)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.tailMap(Object)
.- Specified by:
tailMap
in interfaceShort2ReferenceSortedMap<V>
- Specified by:
tailMap
in interfacejava.util.SortedMap<java.lang.Short,V>
-
-