public abstract class AbstractShort2ReferenceSortedMap<V> extends AbstractShort2ReferenceMap<V> implements Short2ReferenceSortedMap<V>
AbstractShort2ReferenceMap.BasicEntry<V>
Short2ReferenceSortedMap.FastSortedEntrySet<V>
Short2ReferenceMap.Entry<V>, Short2ReferenceMap.FastEntrySet<V>
Modifier and Type | Method and Description |
---|---|
ObjectSortedSet<Map.Entry<Short,V>> |
entrySet()
Returns a set view of the mappings contained in this map.
|
Short |
firstKey()
Delegates to the corresponding type-specific method.
|
Short2ReferenceSortedMap<V> |
headMap(Short to)
Delegates to the corresponding type-specific method.
|
ShortSortedSet |
keySet()
Returns a type-specific-sorted-set view of the keys of this map.
|
Short |
lastKey()
Delegates to the corresponding type-specific method.
|
Short2ReferenceSortedMap<V> |
subMap(Short from,
Short to)
Delegates to the corresponding type-specific method.
|
Short2ReferenceSortedMap<V> |
tailMap(Short from)
Delegates to the corresponding type-specific method.
|
ReferenceCollection<V> |
values()
Returns a type-specific collection view of the values contained in this map.
|
containsKey, containsValue, equals, hashCode, isEmpty, putAll, toString
clear, containsKey, defaultReturnValue, defaultReturnValue, get, put, put, remove, remove
comparator, firstShortKey, headMap, lastShortKey, short2ReferenceEntrySet, subMap, tailMap
containsKey, defaultReturnValue, defaultReturnValue, get, put, remove
public Short2ReferenceSortedMap<V> headMap(Short to)
headMap
in interface Short2ReferenceSortedMap<V>
headMap
in interface SortedMap<Short,V>
SortedMap.headMap(Object)
public Short2ReferenceSortedMap<V> tailMap(Short from)
tailMap
in interface Short2ReferenceSortedMap<V>
tailMap
in interface SortedMap<Short,V>
SortedMap.tailMap(Object)
public Short2ReferenceSortedMap<V> subMap(Short from, Short to)
subMap
in interface Short2ReferenceSortedMap<V>
subMap
in interface SortedMap<Short,V>
SortedMap.subMap(Object,Object)
public Short firstKey()
public Short lastKey()
public ShortSortedSet keySet()
The view is backed by the sorted set returned by entrySet()
. Note that
no attempt is made at caching the result of this method, as this would
require adding some attributes that lightweight implementations would
not need. Subclasses may easily override this policy by calling
this method and caching the result, but implementors are encouraged to
write more efficient ad-hoc implementations.
keySet
in interface Short2ReferenceMap<V>
keySet
in interface Short2ReferenceSortedMap<V>
keySet
in interface Map<Short,V>
keySet
in interface SortedMap<Short,V>
keySet
in class AbstractShort2ReferenceMap<V>
Map.keySet()
public ReferenceCollection<V> values()
The view is backed by the sorted set returned by entrySet()
. Note that
no attempt is made at caching the result of this method, as this would
require adding some attributes that lightweight implementations would
not need. Subclasses may easily override this policy by calling
this method and caching the result, but implementors are encouraged to
write more efficient ad-hoc implementations.
values
in interface Short2ReferenceMap<V>
values
in interface Short2ReferenceSortedMap<V>
values
in interface Map<Short,V>
values
in interface SortedMap<Short,V>
values
in class AbstractShort2ReferenceMap<V>
Map.values()
public ObjectSortedSet<Map.Entry<Short,V>> entrySet()
Short2ReferenceMap
Note that this specification strengthens the one given in Map.entrySet()
.
entrySet
in interface Short2ReferenceMap<V>
entrySet
in interface Short2ReferenceSortedMap<V>
entrySet
in interface Map<Short,V>
entrySet
in interface SortedMap<Short,V>
entrySet
in class AbstractShort2ReferenceMap<V>
Map.entrySet()