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<java.util.Map.Entry<java.lang.Short,V>> |
entrySet()
Returns a set view of the mappings contained in this map.
|
java.lang.Short |
firstKey()
Delegates to the corresponding type-specific method.
|
Short2ReferenceSortedMap<V> |
headMap(java.lang.Short to)
Delegates to the corresponding type-specific method.
|
ShortSortedSet |
keySet()
Returns a type-specific-sorted-set view of the keys of this map.
|
java.lang.Short |
lastKey()
Delegates to the corresponding type-specific method.
|
Short2ReferenceSortedMap<V> |
subMap(java.lang.Short from,
java.lang.Short to)
Delegates to the corresponding type-specific method.
|
Short2ReferenceSortedMap<V> |
tailMap(java.lang.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(java.lang.Short to)
headMap
in interface Short2ReferenceSortedMap<V>
headMap
in interface java.util.SortedMap<java.lang.Short,V>
SortedMap.headMap(Object)
public Short2ReferenceSortedMap<V> tailMap(java.lang.Short from)
tailMap
in interface Short2ReferenceSortedMap<V>
tailMap
in interface java.util.SortedMap<java.lang.Short,V>
SortedMap.tailMap(Object)
public Short2ReferenceSortedMap<V> subMap(java.lang.Short from, java.lang.Short to)
subMap
in interface Short2ReferenceSortedMap<V>
subMap
in interface java.util.SortedMap<java.lang.Short,V>
SortedMap.subMap(Object,Object)
public java.lang.Short firstKey()
firstKey
in interface java.util.SortedMap<java.lang.Short,V>
public java.lang.Short lastKey()
lastKey
in interface java.util.SortedMap<java.lang.Short,V>
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 java.util.Map<java.lang.Short,V>
keySet
in interface java.util.SortedMap<java.lang.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 java.util.Map<java.lang.Short,V>
values
in interface java.util.SortedMap<java.lang.Short,V>
values
in class AbstractShort2ReferenceMap<V>
Map.values()
public ObjectSortedSet<java.util.Map.Entry<java.lang.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 java.util.Map<java.lang.Short,V>
entrySet
in interface java.util.SortedMap<java.lang.Short,V>
entrySet
in class AbstractShort2ReferenceMap<V>
Map.entrySet()