it.unimi.dsi.fastutil.floats
Class Float2ShortSortedMaps.Singleton

java.lang.Object
  extended byit.unimi.dsi.fastutil.floats.AbstractFloat2ShortMap
      extended byit.unimi.dsi.fastutil.floats.Float2ShortMaps.Singleton
          extended byit.unimi.dsi.fastutil.floats.Float2ShortSortedMaps.Singleton
All Implemented Interfaces:
Cloneable, Float2ShortMap, Float2ShortSortedMap, Map, Serializable, SortedMap
Enclosing class:
Float2ShortSortedMaps

public static class Float2ShortSortedMaps.Singleton
extends Float2ShortMaps.Singleton
implements Float2ShortSortedMap, 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.floats.AbstractFloat2ShortMap
AbstractFloat2ShortMap.BasicEntry
 
Nested classes inherited from class it.unimi.dsi.fastutil.floats.Float2ShortMap
Float2ShortMap.Entry
 
Field Summary
static long serialVersionUID
           
 
Method Summary
 Comparator comparator()
           
 float firstFloatKey()
           
 Object firstKey()
           
 Float2ShortSortedMap headMap(float to)
           
 SortedMap headMap(Object oto)
           
 Set keySet()
          Returns a type-specific-set view of the keys of this map.
 float lastFloatKey()
           
 Object lastKey()
           
 Float2ShortSortedMap subMap(float from, float to)
           
 SortedMap subMap(Object ofrom, Object oto)
           
 Float2ShortSortedMap tailMap(float from)
           
 SortedMap tailMap(Object ofrom)
           
 
Methods inherited from class it.unimi.dsi.fastutil.floats.Float2ShortMaps.Singleton
clone, containsKey, containsValue, entrySet, get, putAll, size, values
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloat2ShortMap
clear, containsKey, containsValue, 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.floats.Float2ShortMap
containsKey, containsValue, 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: AbstractFloat2ShortMap
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 Float2ShortMaps.Singleton

subMap

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

headMap

public Float2ShortSortedMap headMap(float to)
Specified by:
headMap in interface Float2ShortSortedMap
See Also:
SortedMap.headMap(Object)

tailMap

public Float2ShortSortedMap tailMap(float from)
Specified by:
tailMap in interface Float2ShortSortedMap
See Also:
SortedMap.tailMap(Object)

firstFloatKey

public float firstFloatKey()
Specified by:
firstFloatKey in interface Float2ShortSortedMap
See Also:
SortedMap.firstKey()

lastFloatKey

public float lastFloatKey()
Specified by:
lastFloatKey in interface Float2ShortSortedMap
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