it.unimi.dsi.fastutil.objects
Class Reference2LongSortedMaps.Singleton

java.lang.Object
  extended byit.unimi.dsi.fastutil.objects.AbstractReference2LongMap
      extended byit.unimi.dsi.fastutil.objects.Reference2LongMaps.Singleton
          extended byit.unimi.dsi.fastutil.objects.Reference2LongSortedMaps.Singleton
All Implemented Interfaces:
Cloneable, Map, Reference2LongMap, Reference2LongSortedMap, Serializable, SortedMap
Enclosing class:
Reference2LongSortedMaps

public static class Reference2LongSortedMaps.Singleton
extends Reference2LongMaps.Singleton
implements Reference2LongSortedMap, Serializable, Cloneable

An immutable class representing a type-specific singleton sorted map.

This class may be useful to implement your own in case you subclass a type-specific sorted map.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class it.unimi.dsi.fastutil.objects.AbstractReference2LongMap
AbstractReference2LongMap.BasicEntry
 
Nested classes inherited from class it.unimi.dsi.fastutil.objects.Reference2LongMap
Reference2LongMap.Entry
 
Field Summary
static long serialVersionUID
           
 
Method Summary
 Comparator comparator()
           
 Object firstKey()
           
 SortedMap headMap(Object to)
           
 Set keySet()
          Returns a type-specific-set view of the keys of this map.
 Object lastKey()
           
 SortedMap subMap(Object from, Object to)
           
 SortedMap tailMap(Object from)
           
 
Methods inherited from class it.unimi.dsi.fastutil.objects.Reference2LongMaps.Singleton
clone, containsKey, containsValue, entrySet, getLong, putAll, size, values
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReference2LongMap
clear, containsValue, defaultReturnValue, defaultReturnValue, equals, get, getDefRetValue, hashCode, isEmpty, put, put, remove, removeLong, setDefRetValue, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.Reference2LongMap
containsValue, defaultReturnValue, defaultReturnValue, getDefRetValue, getLong, put, removeLong, setDefRetValue
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, put, putAll, remove, size, values
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

comparator

public Comparator comparator()
Specified by:
comparator in interface SortedMap

keySet

public Set keySet()
Description copied from class: AbstractReference2LongMap
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.

Specified by:
keySet in interface Map
Overrides:
keySet in class Reference2LongMaps.Singleton

subMap

public SortedMap subMap(Object from,
                        Object to)
Specified by:
subMap in interface SortedMap

headMap

public SortedMap headMap(Object to)
Specified by:
headMap in interface SortedMap

tailMap

public SortedMap tailMap(Object from)
Specified by:
tailMap in interface SortedMap

firstKey

public Object firstKey()
Specified by:
firstKey in interface SortedMap

lastKey

public Object lastKey()
Specified by:
lastKey in interface SortedMap