public interface Long2ShortOrderedMap extends Long2ShortMap
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Long2ShortOrderedMap.FastOrderedSet
Fast Ordered Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
Long2ShortMap.BuilderCache, Long2ShortMap.Entry, Long2ShortMap.FastEntrySet, Long2ShortMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
Long2ShortOrderedMap |
copy()
A Function that does a shallow clone of the Map itself.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
short |
firstShortValue()
A method to get the first Value of a Map.
|
short |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
short |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
LongOrderedSet |
keySet() |
long |
lastLongKey()
A method to get the last Key of a Map.
|
short |
lastShortValue()
A method to get the last Value of a Map.
|
ObjectOrderedSet<Long2ShortMap.Entry> |
long2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
short |
putAndMoveToFirst(long key,
short value)
A customized put method that allows you to insert into the first index.
|
short |
putAndMoveToLast(long key,
short value)
A customized put method that allows you to insert into the last index.
|
default Long2ShortOrderedMap |
synchronize()
Creates a Wrapped SortedMap that is Synchronized
|
default Long2ShortOrderedMap |
synchronize(java.lang.Object mutex)
Creates a Wrapped SortedMap that is Synchronized
|
default Long2ShortOrderedMap |
unmodifiable()
Creates a Wrapped SortedMap that is unmodifiable
|
addTo, addToAll, builder, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllShort, mergeShort, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValue, subFrom, supplyShortIfAbsent, valuesshort putAndMoveToFirst(long key,
short value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)short putAndMoveToLast(long key,
short value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)boolean moveToFirst(long key)
key - that should be moved to the first indexboolean moveToLast(long key)
key - that should be moved to the first lastshort getAndMoveToFirst(long key)
key - that is searched forshort getAndMoveToLast(long key)
key - that is searched forlong firstLongKey()
long pollFirstLongKey()
long lastLongKey()
long pollLastLongKey()
short firstShortValue()
short lastShortValue()
Long2ShortOrderedMap copy()
Long2ShortMapcopy in interface Long2ShortMapLongOrderedSet keySet()
keySet in interface Long2ShortMapkeySet in interface java.util.Map<java.lang.Long,java.lang.Short>ObjectOrderedSet<Long2ShortMap.Entry> long2ShortEntrySet()
Long2ShortMaplong2ShortEntrySet in interface Long2ShortMapdefault Long2ShortOrderedMap synchronize()
synchronize in interface Long2ShortMapLong2ShortMaps.synchronize(speiger.src.collections.longs.maps.interfaces.Long2ShortMap)default Long2ShortOrderedMap synchronize(java.lang.Object mutex)
synchronize in interface Long2ShortMapmutex - is the controller of the synchronization blockLong2ShortMaps.synchronize(speiger.src.collections.longs.maps.interfaces.Long2ShortMap)default Long2ShortOrderedMap unmodifiable()
unmodifiable in interface Long2ShortMapLong2ShortMaps.unmodifiable(speiger.src.collections.longs.maps.interfaces.Long2ShortMap)