public interface Long2FloatSortedMap extends Long2FloatMap, SortedMap<Long,Float>
SortedMap; provides some additional methods that use
polymorphism to avoid (un)boxing.
Additionally, this interface strengthens entrySet(),
keySet(), values(), comparator(),
SortedMap.subMap(Object,Object), SortedMap.headMap(Object)
and SortedMap.tailMap(Object).
SortedMap| Modifier and Type | Interface and Description |
|---|---|
static interface |
Long2FloatSortedMap.FastSortedEntrySet
A sorted entry set providing fast iteration.
|
Long2FloatMap.Entry, Long2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
LongComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it
uses its keys' natural ordering.
|
ObjectSortedSet<Map.Entry<Long,Float>> |
entrySet()
Deprecated.
Please use the corresponding type-specific method instead.
|
Long |
firstKey()
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
firstLongKey()
Returns the first (lowest) key currently in this map.
|
Long2FloatSortedMap |
headMap(long toKey)
Returns a view of the portion of this sorted map whose keys are strictly
less than
toKey. |
Long2FloatSortedMap |
headMap(Long toKey)
Deprecated.
Please use the corresponding type-specific method instead.
|
LongSortedSet |
keySet()
Returns a type-specific sorted-set view of the keys contained in this
map.
|
Long |
lastKey()
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
lastLongKey()
Returns the last (highest) key currently in this map.
|
ObjectSortedSet<Long2FloatMap.Entry> |
long2FloatEntrySet()
Returns a type-specific sorted-set view of the mappings contained in this
map.
|
Long2FloatSortedMap |
subMap(long fromKey,
long toKey)
Returns a view of the portion of this sorted map whose keys range from
fromKey, inclusive, to toKey, exclusive. |
Long2FloatSortedMap |
subMap(Long fromKey,
Long toKey)
Deprecated.
Please use the corresponding type-specific method instead.
|
Long2FloatSortedMap |
tailMap(long fromKey)
Returns a view of the portion of this sorted map whose keys are greater
than or equal to
fromKey. |
Long2FloatSortedMap |
tailMap(Long fromKey)
Deprecated.
Please use the corresponding type-specific method instead.
|
FloatCollection |
values()
Returns a type-specific set view of the values contained in this map.
|
containsValue, containsValue, get, put, removecontainsKey, containsKey, defaultReturnValue, defaultReturnValue, get, put, removeclear, compute, computeIfAbsent, computeIfPresent, containsKey, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, sizeLong2FloatSortedMap subMap(long fromKey, long toKey)
fromKey, inclusive, to toKey, exclusive.
Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).
SortedMap.subMap(Object,Object)Long2FloatSortedMap headMap(long toKey)
toKey.
Note that this specification strengthens the one given in
SortedMap.headMap(Object).
SortedMap.headMap(Object)Long2FloatSortedMap tailMap(long fromKey)
fromKey.
Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
SortedMap.tailMap(Object)long firstLongKey()
SortedMap.firstKey()long lastLongKey()
SortedMap.lastKey()@Deprecated Long2FloatSortedMap subMap(Long fromKey, Long toKey)
Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).
@Deprecated Long2FloatSortedMap headMap(Long toKey)
Note that this specification strengthens the one given in
SortedMap.headMap(Object).
@Deprecated Long2FloatSortedMap tailMap(Long fromKey)
Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
@Deprecated Long firstKey()
@Deprecated Long lastKey()
@Deprecated ObjectSortedSet<Map.Entry<Long,Float>> entrySet()
Note that this specification strengthens the one given in the corresponding type-specific unsorted map.
ObjectSortedSet<Long2FloatMap.Entry> long2FloatEntrySet()
Note that this specification strengthens the one given in the corresponding type-specific unsorted map.
long2FloatEntrySet in interface Long2FloatMapentrySet()LongSortedSet keySet()
Note that this specification strengthens the one given in the corresponding type-specific unsorted map.
FloatCollection values()
Note that this specification strengthens the one given in
Map.values(), which was already strengthened in the corresponding
type-specific class, but was weakened by the fact that this interface
extends SortedMap.
LongComparator comparator()
Note that this specification strengthens the one given in
SortedMap.comparator().
comparator in interface SortedMap<Long,Float>SortedMap.comparator()