public interface Short2BooleanSortedMap extends java.util.SortedMap<java.lang.Short,java.lang.Boolean>, Short2BooleanMap
SortedMap interface to reduce boxing/unboxing, with a couple extra methods that allow greater control over maps.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Short2BooleanSortedMap.FastSortedSet
Fast Sorted Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
Short2BooleanMap.Entry, Short2BooleanMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
ShortComparator |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
default java.lang.Short |
firstKey()
Deprecated.
|
short |
firstShortKey()
A method to get the first Key of a Map.
|
boolean |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
Short2BooleanSortedMap |
headMap(short toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
default Short2BooleanSortedMap |
headMap(java.lang.Short toKey)
Deprecated.
|
ShortSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
default java.lang.Short |
lastKey()
Deprecated.
|
short |
lastShortKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(short key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(short key)
A specific move method to move a given key/value to the last index.
|
short |
pollFirstShortKey()
A method to get and remove the first Key of a Map.
|
short |
pollLastShortKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(short key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(short key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Short2BooleanSortedMap |
subMap(short fromKey,
short toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
default Short2BooleanSortedMap |
subMap(java.lang.Short fromKey,
java.lang.Short toKey)
Deprecated.
|
Short2BooleanSortedMap |
tailMap(short fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
default Short2BooleanSortedMap |
tailMap(java.lang.Short fromKey)
Deprecated.
|
BooleanCollection |
values() |
compute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getBoolean, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remShort, remShortOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, short2BooleanEntrySetboolean putAndMoveToFirst(short key,
boolean value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)boolean putAndMoveToLast(short key,
boolean value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)boolean moveToFirst(short key)
key - that should be moved to the first indexboolean moveToLast(short key)
key - that should be moved to the first lastboolean getAndMoveToFirst(short key)
key - that is searched forboolean getAndMoveToLast(short key)
key - that is searched forShortComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Boolean>keySet in interface Short2BooleanMapkeySet in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>BooleanCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Boolean>values in interface Short2BooleanMapvalues in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>Short2BooleanSortedMap subMap(short fromKey, short toKey)
fromKey - where the submap should starttoKey - where the subMap should endShort2BooleanSortedMap headMap(short toKey)
toKey - where the headMap should endShort2BooleanSortedMap tailMap(short fromKey)
fromKey - where the TailMap should startshort firstShortKey()
short pollFirstShortKey()
short lastShortKey()
short pollLastShortKey()
boolean firstBooleanValue()
boolean lastBooleanValue()
@Deprecated default java.lang.Short firstKey()
firstKey in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>@Deprecated default java.lang.Short lastKey()
lastKey in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>@Deprecated default Short2BooleanSortedMap subMap(java.lang.Short fromKey, java.lang.Short toKey)
subMap in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>@Deprecated default Short2BooleanSortedMap headMap(java.lang.Short toKey)
headMap in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>@Deprecated default Short2BooleanSortedMap tailMap(java.lang.Short fromKey)
tailMap in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>