Function<java.lang.Integer,java.lang.Integer>
, Int2IntFunction
, Int2IntMap
, Int2IntSortedMap
, java.io.Serializable
, java.util.function.Function<java.lang.Integer,java.lang.Integer>
, java.util.function.IntUnaryOperator
, java.util.Map<java.lang.Integer,java.lang.Integer>
, java.util.SortedMap<java.lang.Integer,java.lang.Integer>
Int2IntAVLTreeMap
, Int2IntLinkedOpenHashMap
, Int2IntRBTreeMap
public abstract class AbstractInt2IntSortedMap extends AbstractInt2IntMap implements Int2IntSortedMap
AbstractInt2IntMap.BasicEntry, AbstractInt2IntMap.BasicEntrySet
Int2IntMap.Entry, Int2IntMap.FastEntrySet
Int2IntSortedMap.FastSortedEntrySet
Modifier and Type | Method | Description |
---|---|---|
IntSortedSet |
keySet() |
Returns a type-specific-set view of the keys of this map.
|
IntCollection |
values() |
Returns a type-specific-set view of the values of this map.
|
defaultReturnValue, defaultReturnValue
containsKey, containsValue, equals, hashCode, isEmpty, putAll, toString
applyAsInt, get, put, remove
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, get, getOrDefault, getOrDefault, merge, merge, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, size
comparator, entrySet, firstIntKey, firstKey, headMap, headMap, int2IntEntrySet, lastIntKey, lastKey, subMap, subMap, tailMap, tailMap
public IntSortedSet keySet()
The view is backed by the set returned by Map.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.
The view is backed by the sorted set returned by
Map.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 Int2IntMap
keySet
in interface Int2IntSortedMap
keySet
in interface java.util.Map<java.lang.Integer,java.lang.Integer>
keySet
in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>
keySet
in class AbstractInt2IntMap
Map.keySet()
public IntCollection values()
The view is backed by the set returned by Map.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.
The view is backed by the sorted set returned by
Map.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 Int2IntMap
values
in interface Int2IntSortedMap
values
in interface java.util.Map<java.lang.Integer,java.lang.Integer>
values
in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>
values
in class AbstractInt2IntMap
Map.values()