Class AbstractInt2ReferenceSortedMap<V>
- All Implemented Interfaces:
Function<java.lang.Integer,V>
,Int2ReferenceFunction<V>
,Int2ReferenceMap<V>
,Int2ReferenceSortedMap<V>
,java.io.Serializable
,java.util.function.Function<java.lang.Integer,V>
,java.util.function.IntFunction<V>
,java.util.Map<java.lang.Integer,V>
,java.util.SortedMap<java.lang.Integer,V>
- Direct Known Subclasses:
Int2ReferenceAVLTreeMap
,Int2ReferenceLinkedOpenHashMap
,Int2ReferenceRBTreeMap
public abstract class AbstractInt2ReferenceSortedMap<V> extends AbstractInt2ReferenceMap<V> implements Int2ReferenceSortedMap<V>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2ReferenceMap
AbstractInt2ReferenceMap.BasicEntry<V>, AbstractInt2ReferenceMap.BasicEntrySet<V>
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.ints.Int2ReferenceMap
Int2ReferenceMap.Entry<V>, Int2ReferenceMap.FastEntrySet<V>
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.ints.Int2ReferenceSortedMap
Int2ReferenceSortedMap.FastSortedEntrySet<V>
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Method Summary
Modifier and Type Method Description IntSortedSet
keySet()
Returns a type-specific-set view of the keys of this map.ReferenceCollection<V>
values()
Returns a type-specific-set view of the values of this map.Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2ReferenceMap
containsKey, containsValue, equals, hashCode, isEmpty, putAll, toString
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2ReferenceFunction
defaultReturnValue, defaultReturnValue
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.Function
andThen
Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2ReferenceFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, apply, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, get, put, remove
Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2ReferenceMap
clear, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsKey, defaultReturnValue, defaultReturnValue, forEach, get, getOrDefault, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2ReferenceSortedMap
comparator, entrySet, firstIntKey, firstKey, headMap, headMap, int2ReferenceEntrySet, lastIntKey, lastKey, subMap, subMap, tailMap, tailMap
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Method Details
-
keySet
Returns a type-specific-set view of the keys of this map.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.- Specified by:
keySet
in interfaceInt2ReferenceMap<V>
- Specified by:
keySet
in interfaceInt2ReferenceSortedMap<V>
- Specified by:
keySet
in interfacejava.util.Map<java.lang.Integer,V>
- Specified by:
keySet
in interfacejava.util.SortedMap<java.lang.Integer,V>
- Overrides:
keySet
in classAbstractInt2ReferenceMap<V>
- Returns:
- a sorted set view of the keys of this map; it may be safely cast to a type-specific interface.
- See Also:
Map.keySet()
-
values
Returns a type-specific-set view of the values of this map.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.- Specified by:
values
in interfaceInt2ReferenceMap<V>
- Specified by:
values
in interfaceInt2ReferenceSortedMap<V>
- Specified by:
values
in interfacejava.util.Map<java.lang.Integer,V>
- Specified by:
values
in interfacejava.util.SortedMap<java.lang.Integer,V>
- Overrides:
values
in classAbstractInt2ReferenceMap<V>
- Returns:
- a type-specific collection view of the values contained in this map.
- See Also:
Map.values()
-