Class Short2BooleanSortedMaps.Singleton
- java.lang.Object
-
- it.unimi.dsi.fastutil.shorts.AbstractShort2BooleanFunction
-
- it.unimi.dsi.fastutil.shorts.Short2BooleanFunctions.Singleton
-
- it.unimi.dsi.fastutil.shorts.Short2BooleanMaps.Singleton
-
- it.unimi.dsi.fastutil.shorts.Short2BooleanSortedMaps.Singleton
-
- All Implemented Interfaces:
Function<Short,Boolean>,Short2BooleanFunction,Short2BooleanMap,Short2BooleanSortedMap,Serializable,Cloneable,Function<Short,Boolean>,IntPredicate,Map<Short,Boolean>,SortedMap<Short,Boolean>
- Enclosing class:
- Short2BooleanSortedMaps
public static class Short2BooleanSortedMaps.Singleton extends Short2BooleanMaps.Singleton implements Short2BooleanSortedMap, Serializable, Cloneable
An immutable class representing a type-specific singleton sorted map.This class may be useful to implement your own in case you subclass a type-specific sorted map.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.shorts.Short2BooleanMap
Short2BooleanMap.Entry, Short2BooleanMap.FastEntrySet
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.shorts.Short2BooleanSortedMap
Short2BooleanSortedMap.FastSortedEntrySet
-
-
Method Summary
Modifier and Type Method Description ShortComparatorcomparator()Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.ObjectSortedSet<Map.Entry<Short,Boolean>>entrySet()Deprecated.Please use the corresponding type-specific method instead.ShortfirstKey()Deprecated.Please use the corresponding type-specific method instead.shortfirstShortKey()Returns the first (lowest) key currently in this map.Short2BooleanSortedMapheadMap(short to)Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.Short2BooleanSortedMapheadMap(Short oto)Deprecated.Please use the corresponding type-specific method instead.ShortSortedSetkeySet()ShortlastKey()Deprecated.Please use the corresponding type-specific method instead.shortlastShortKey()Returns the last (highest) key currently in this map.ObjectSortedSet<Short2BooleanMap.Entry>short2BooleanEntrySet()Returns a type-specific set view of the mappings contained in this map.Short2BooleanSortedMapsubMap(short from, short to)Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.Short2BooleanSortedMapsubMap(Short ofrom, Short oto)Deprecated.Please use the corresponding type-specific method instead.Short2BooleanSortedMaptailMap(short from)Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.Short2BooleanSortedMaptailMap(Short ofrom)Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from class it.unimi.dsi.fastutil.shorts.Short2BooleanMaps.Singleton
containsValue, containsValue, equals, hashCode, isEmpty, putAll, toString, values
-
Methods inherited from class it.unimi.dsi.fastutil.shorts.Short2BooleanFunctions.Singleton
clone, containsKey, get, size
-
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShort2BooleanFunction
defaultReturnValue, defaultReturnValue
-
Methods inherited from interface java.util.function.IntPredicate
and, negate, or
-
Methods inherited from interface java.util.Map
clear, containsKey, equals, forEach, get, hashCode, isEmpty, put, putAll, remove, replaceAll, size
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
get, put, remove, test
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2BooleanMap
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, 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.Short2BooleanSortedMap
values
-
-
-
-
Method Detail
-
comparator
public ShortComparator comparator()
Description copied from interface:Short2BooleanSortedMapReturns 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:
comparatorin interfaceShort2BooleanSortedMap- Specified by:
comparatorin interfaceSortedMap<Short,Boolean>- See Also:
SortedMap.comparator()
-
short2BooleanEntrySet
public ObjectSortedSet<Short2BooleanMap.Entry> short2BooleanEntrySet()
Description copied from interface:Short2BooleanMapReturns 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 anObjectSetof type-specific entries (the latter makes it possible to access keys and values with type-specific methods).- Specified by:
short2BooleanEntrySetin interfaceShort2BooleanMap- Specified by:
short2BooleanEntrySetin interfaceShort2BooleanSortedMap- Overrides:
short2BooleanEntrySetin classShort2BooleanMaps.Singleton- Returns:
- a type-specific set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
entrySet
@Deprecated public ObjectSortedSet<Map.Entry<Short,Boolean>> 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:
entrySetin interfaceMap<Short,Boolean>- Specified by:
entrySetin interfaceShort2BooleanMap- Specified by:
entrySetin interfaceShort2BooleanSortedMap- Specified by:
entrySetin interfaceSortedMap<Short,Boolean>- Overrides:
entrySetin classShort2BooleanMaps.Singleton- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
keySet
public ShortSortedSet keySet()
Description copied from interface:Short2BooleanMapNote that this specification strengthens the one given in
Map.keySet().- Specified by:
keySetin interfaceMap<Short,Boolean>- Specified by:
keySetin interfaceShort2BooleanMap- Specified by:
keySetin interfaceShort2BooleanSortedMap- Specified by:
keySetin interfaceSortedMap<Short,Boolean>- Overrides:
keySetin classShort2BooleanMaps.Singleton- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
-
subMap
public Short2BooleanSortedMap subMap(short from, short to)
Description copied from interface:Short2BooleanSortedMapReturns 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:
subMapin interfaceShort2BooleanSortedMap- See Also:
SortedMap.subMap(Object,Object)
-
headMap
public Short2BooleanSortedMap headMap(short to)
Description copied from interface:Short2BooleanSortedMapReturns 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:
headMapin interfaceShort2BooleanSortedMap- See Also:
SortedMap.headMap(Object)
-
tailMap
public Short2BooleanSortedMap tailMap(short from)
Description copied from interface:Short2BooleanSortedMapReturns 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:
tailMapin interfaceShort2BooleanSortedMap- See Also:
SortedMap.tailMap(Object)
-
firstShortKey
public short firstShortKey()
Description copied from interface:Short2BooleanSortedMapReturns the first (lowest) key currently in this map.- Specified by:
firstShortKeyin interfaceShort2BooleanSortedMap- See Also:
SortedMap.firstKey()
-
lastShortKey
public short lastShortKey()
Description copied from interface:Short2BooleanSortedMapReturns the last (highest) key currently in this map.- Specified by:
lastShortKeyin interfaceShort2BooleanSortedMap- See Also:
SortedMap.lastKey()
-
headMap
@Deprecated public Short2BooleanSortedMap headMap(Short oto)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.headMap(Object).
-
tailMap
@Deprecated public Short2BooleanSortedMap tailMap(Short ofrom)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
-
subMap
@Deprecated public Short2BooleanSortedMap subMap(Short ofrom, Short oto)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).
-
firstKey
@Deprecated public Short firstKey()
Deprecated.Please use the corresponding type-specific method instead.
-
lastKey
@Deprecated public Short lastKey()
Deprecated.Please use the corresponding type-specific method instead.
-
-