Class AbstractLong2LongSortedMap
- All Implemented Interfaces:
Function<Long,Long>,Long2LongFunction,Long2LongMap,Long2LongSortedMap,Serializable,Function<Long,Long>,LongUnaryOperator,Map<Long,Long>,SortedMap<Long,Long>
- Direct Known Subclasses:
Long2LongAVLTreeMap,Long2LongLinkedOpenHashMap,Long2LongRBTreeMap
public abstract class AbstractLong2LongSortedMap extends AbstractLong2LongMap implements Long2LongSortedMap
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
AbstractLong2LongMap.BasicEntry, AbstractLong2LongMap.BasicEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMap
Long2LongMap.Entry, Long2LongMap.FastEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMap
Long2LongSortedMap.FastSortedEntrySet -
Method Summary
Modifier and Type Method Description LongSortedSetkeySet()Returns a type-specific-set view of the keys of this map.LongCollectionvalues()Returns a type-specific-set view of the values of this map.Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
containsKey, containsValue, equals, hashCode, isEmpty, putAll, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
defaultReturnValue, defaultReturnValueMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongFunction
applyAsLong, get, put, removeMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMap
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, sizeMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMap
comparator, entrySet, firstKey, firstLongKey, headMap, headMap, lastKey, lastLongKey, long2LongEntrySet, subMap, subMap, tailMap, tailMap
-
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:
keySetin interfaceLong2LongMap- Specified by:
keySetin interfaceLong2LongSortedMap- Specified by:
keySetin interfaceMap<Long,Long>- Specified by:
keySetin interfaceSortedMap<Long,Long>- Overrides:
keySetin classAbstractLong2LongMap- 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:
valuesin interfaceLong2LongMap- Specified by:
valuesin interfaceLong2LongSortedMap- Specified by:
valuesin interfaceMap<Long,Long>- Specified by:
valuesin interfaceSortedMap<Long,Long>- Overrides:
valuesin classAbstractLong2LongMap- Returns:
- a type-specific collection view of the values contained in this map.
- See Also:
Map.values()
-