it.unimi.dsi.fastutil.floats
Class Float2ObjectSortedMaps.SynchronizedSortedMap<V>

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.AbstractFloat2ObjectFunction<V>
      extended by it.unimi.dsi.fastutil.floats.Float2ObjectFunctions.SynchronizedFunction<V>
          extended by it.unimi.dsi.fastutil.floats.Float2ObjectMaps.SynchronizedMap<V>
              extended by it.unimi.dsi.fastutil.floats.Float2ObjectSortedMaps.SynchronizedSortedMap<V>
All Implemented Interfaces:
Float2ObjectFunction<V>, Float2ObjectMap<V>, Float2ObjectSortedMap<V>, Function<java.lang.Float,V>, java.io.Serializable, java.util.Map<java.lang.Float,V>, java.util.SortedMap<java.lang.Float,V>
Enclosing class:
Float2ObjectSortedMaps

public static class Float2ObjectSortedMaps.SynchronizedSortedMap<V>
extends Float2ObjectMaps.SynchronizedMap<V>
implements Float2ObjectSortedMap<V>, java.io.Serializable

A synchronized wrapper class for sorted maps.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.floats.Float2ObjectSortedMap
Float2ObjectSortedMap.FastSortedEntrySet<V>
 
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.floats.Float2ObjectMap
Float2ObjectMap.Entry<V>, Float2ObjectMap.FastEntrySet<V>
 
Method Summary
 FloatComparator comparator()
          Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
 ObjectSortedSet<java.util.Map.Entry<java.lang.Float,V>> entrySet()
          Returns a set view of the mappings contained in this map.
 float firstFloatKey()
           
 java.lang.Float firstKey()
           
 ObjectSortedSet<Float2ObjectMap.Entry<V>> float2ObjectEntrySet()
          Returns a type-specific set view of the mappings contained in this map.
 Float2ObjectSortedMap<V> headMap(float to)
          Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
 Float2ObjectSortedMap<V> headMap(java.lang.Float to)
          Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
 FloatSortedSet keySet()
          Returns a set view of the keys contained in this map.
 float lastFloatKey()
           
 java.lang.Float lastKey()
           
 Float2ObjectSortedMap<V> subMap(float from, float to)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 Float2ObjectSortedMap<V> subMap(java.lang.Float from, java.lang.Float to)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 Float2ObjectSortedMap<V> tailMap(float from)
          Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
 Float2ObjectSortedMap<V> tailMap(java.lang.Float from)
          Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
 
Methods inherited from class it.unimi.dsi.fastutil.floats.Float2ObjectMaps.SynchronizedMap
clear, containsKey, containsKey, containsValue, defaultReturnValue, defaultReturnValue, equals, get, hashCode, isEmpty, put, put, putAll, remove, size, toString, values
 
Methods inherited from class it.unimi.dsi.fastutil.floats.Float2ObjectFunctions.SynchronizedFunction
get, remove
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2ObjectSortedMap
values
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction
containsKey, defaultReturnValue, defaultReturnValue, get, put, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.Function
clear, containsKey, get, put, remove, size
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 

Method Detail

comparator

public FloatComparator comparator()
Description copied from interface: Float2ObjectSortedMap
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.

Note that this specification strengthens the one given in SortedMap.comparator().

Specified by:
comparator in interface Float2ObjectSortedMap<V>
Specified by:
comparator in interface java.util.SortedMap<java.lang.Float,V>
See Also:
SortedMap.comparator()

float2ObjectEntrySet

public ObjectSortedSet<Float2ObjectMap.Entry<V>> float2ObjectEntrySet()
Description copied from interface: Float2ObjectMap
Returns a type-specific set view of the mappings contained in this map.

This method is necessary because there is no inheritance along type parameters: it is thus impossible to strengthen Float2ObjectMap.entrySet() so that it returns an ObjectSet of objects of type Map.Entry (the latter makes it possible to access keys and values with type-specific methods).

Specified by:
float2ObjectEntrySet in interface Float2ObjectMap<V>
Specified by:
float2ObjectEntrySet in interface Float2ObjectSortedMap<V>
Overrides:
float2ObjectEntrySet in class Float2ObjectMaps.SynchronizedMap<V>
Returns:
a type-specific set view of the mappings contained in this map.
See Also:
Float2ObjectMap.entrySet()

entrySet

public ObjectSortedSet<java.util.Map.Entry<java.lang.Float,V>> entrySet()
Description copied from interface: Float2ObjectMap
Returns a set view of the mappings contained in this map.

Note that this specification strengthens the one given in Map.entrySet().

Specified by:
entrySet in interface Float2ObjectMap<V>
Specified by:
entrySet in interface Float2ObjectSortedMap<V>
Specified by:
entrySet in interface java.util.Map<java.lang.Float,V>
Specified by:
entrySet in interface java.util.SortedMap<java.lang.Float,V>
Overrides:
entrySet in class Float2ObjectMaps.SynchronizedMap<V>
Returns:
a set view of the mappings contained in this map.
See Also:
Map.entrySet()

keySet

public FloatSortedSet keySet()
Description copied from interface: Float2ObjectMap
Returns a set view of the keys contained in this map.

Note that this specification strengthens the one given in Map.keySet().

Specified by:
keySet in interface Float2ObjectMap<V>
Specified by:
keySet in interface Float2ObjectSortedMap<V>
Specified by:
keySet in interface java.util.Map<java.lang.Float,V>
Specified by:
keySet in interface java.util.SortedMap<java.lang.Float,V>
Overrides:
keySet in class Float2ObjectMaps.SynchronizedMap<V>
Returns:
a set view of the keys contained in this map.
See Also:
Map.keySet()

subMap

public Float2ObjectSortedMap<V> subMap(float from,
                                       float to)
Description copied from interface: Float2ObjectSortedMap
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.

Specified by:
subMap in interface Float2ObjectSortedMap<V>
See Also:
SortedMap.subMap(Object,Object)

headMap

public Float2ObjectSortedMap<V> headMap(float to)
Description copied from interface: Float2ObjectSortedMap
Returns a view of the portion of this sorted map whose keys are strictly less than toKey.

Specified by:
headMap in interface Float2ObjectSortedMap<V>
See Also:
SortedMap.headMap(Object)

tailMap

public Float2ObjectSortedMap<V> tailMap(float from)
Description copied from interface: Float2ObjectSortedMap
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.

Specified by:
tailMap in interface Float2ObjectSortedMap<V>
See Also:
SortedMap.tailMap(Object)

firstFloatKey

public float firstFloatKey()
Specified by:
firstFloatKey in interface Float2ObjectSortedMap<V>
See Also:
SortedMap.firstKey()

lastFloatKey

public float lastFloatKey()
Specified by:
lastFloatKey in interface Float2ObjectSortedMap<V>
See Also:
SortedMap.lastKey()

firstKey

public java.lang.Float firstKey()
Specified by:
firstKey in interface java.util.SortedMap<java.lang.Float,V>

lastKey

public java.lang.Float lastKey()
Specified by:
lastKey in interface java.util.SortedMap<java.lang.Float,V>

subMap

public Float2ObjectSortedMap<V> subMap(java.lang.Float from,
                                       java.lang.Float to)
Description copied from interface: Float2ObjectSortedMap
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.

Note that this specification strengthens the one given in SortedMap.subMap(Object,Object).

Specified by:
subMap in interface Float2ObjectSortedMap<V>
Specified by:
subMap in interface java.util.SortedMap<java.lang.Float,V>
See Also:
SortedMap.subMap(Object,Object)

headMap

public Float2ObjectSortedMap<V> headMap(java.lang.Float to)
Description copied from interface: Float2ObjectSortedMap
Returns a view of the portion of this sorted map whose keys are strictly less than toKey.

Note that this specification strengthens the one given in SortedMap.headMap(Object).

Specified by:
headMap in interface Float2ObjectSortedMap<V>
Specified by:
headMap in interface java.util.SortedMap<java.lang.Float,V>
See Also:
SortedMap.headMap(Object)

tailMap

public Float2ObjectSortedMap<V> tailMap(java.lang.Float from)
Description copied from interface: Float2ObjectSortedMap
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.

Note that this specification strengthens the one given in SortedMap.tailMap(Object).

Specified by:
tailMap in interface Float2ObjectSortedMap<V>
Specified by:
tailMap in interface java.util.SortedMap<java.lang.Float,V>
See Also:
SortedMap.tailMap(Object)