it.unimi.dsi.fastutil.longs
Class Long2ReferenceSortedMaps.Singleton

java.lang.Object
  extended byit.unimi.dsi.fastutil.longs.AbstractLong2ReferenceMap
      extended byit.unimi.dsi.fastutil.longs.Long2ReferenceMaps.Singleton
          extended byit.unimi.dsi.fastutil.longs.Long2ReferenceSortedMaps.Singleton
All Implemented Interfaces:
Cloneable, Long2ReferenceMap, Long2ReferenceSortedMap, Map, Serializable, SortedMap
Enclosing class:
Long2ReferenceSortedMaps

public static class Long2ReferenceSortedMaps.Singleton
extends Long2ReferenceMaps.Singleton
implements Long2ReferenceSortedMap, 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.longs.AbstractLong2ReferenceMap
AbstractLong2ReferenceMap.BasicEntry
 
Nested classes inherited from class it.unimi.dsi.fastutil.longs.Long2ReferenceMap
Long2ReferenceMap.Entry
 
Field Summary
static long serialVersionUID
           
 
Method Summary
 Comparator comparator()
           
 Object firstKey()
           
 long firstLongKey()
           
 Long2ReferenceSortedMap headMap(long to)
           
 SortedMap headMap(Object oto)
           
 Set keySet()
          Returns a type-specific-set view of the keys of this map.
 Object lastKey()
           
 long lastLongKey()
           
 Long2ReferenceSortedMap subMap(long from, long to)
           
 SortedMap subMap(Object ofrom, Object oto)
           
 Long2ReferenceSortedMap tailMap(long from)
           
 SortedMap tailMap(Object ofrom)
           
 
Methods inherited from class it.unimi.dsi.fastutil.longs.Long2ReferenceMaps.Singleton
clone, containsKey, containsValue, entrySet, get, putAll, size, values
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2ReferenceMap
clear, containsKey, defaultReturnValue, defaultReturnValue, equals, get, getDefRetValue, hashCode, isEmpty, put, put, remove, remove, setDefRetValue, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2ReferenceMap
containsKey, defaultReturnValue, defaultReturnValue, get, getDefRetValue, put, remove, 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: AbstractLong2ReferenceMap
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 Long2ReferenceMaps.Singleton

subMap

public Long2ReferenceSortedMap subMap(long from,
                                      long to)
Specified by:
subMap in interface Long2ReferenceSortedMap
See Also:
SortedMap.subMap(Object,Object)

headMap

public Long2ReferenceSortedMap headMap(long to)
Specified by:
headMap in interface Long2ReferenceSortedMap
See Also:
SortedMap.headMap(Object)

tailMap

public Long2ReferenceSortedMap tailMap(long from)
Specified by:
tailMap in interface Long2ReferenceSortedMap
See Also:
SortedMap.tailMap(Object)

firstLongKey

public long firstLongKey()
Specified by:
firstLongKey in interface Long2ReferenceSortedMap
See Also:
SortedMap.firstKey()

lastLongKey

public long lastLongKey()
Specified by:
lastLongKey in interface Long2ReferenceSortedMap
See Also:
SortedMap.lastKey()

headMap

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

tailMap

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

subMap

public SortedMap subMap(Object ofrom,
                        Object oto)
Specified by:
subMap in interface SortedMap

firstKey

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

lastKey

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