it.unimi.dsi.fastutil.floats
Class Float2DoubleMaps.Singleton
java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloat2DoubleFunction
it.unimi.dsi.fastutil.floats.Float2DoubleFunctions.Singleton
it.unimi.dsi.fastutil.floats.Float2DoubleMaps.Singleton
- All Implemented Interfaces:
- Float2DoubleFunction, Float2DoubleMap, Function<Float,Double>, Serializable, Cloneable, Map<Float,Double>
- Direct Known Subclasses:
- Float2DoubleSortedMaps.Singleton
- Enclosing class:
- Float2DoubleMaps
public static class Float2DoubleMaps.Singleton
- extends Float2DoubleFunctions.Singleton
- implements Float2DoubleMap, Serializable, Cloneable
An immutable class representing a type-specific singleton map.
This class may be useful to implement your own in case you subclass
a type-specific map.
- See Also:
- Serialized Form
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
entries
protected transient volatile ObjectSet<Float2DoubleMap.Entry> entries
keys
protected transient volatile FloatSet keys
values
protected transient volatile DoubleCollection values
Float2DoubleMaps.Singleton
protected Float2DoubleMaps.Singleton(float key,
double value)
containsValue
public boolean containsValue(double v)
- Specified by:
containsValue
in interface Float2DoubleMap
- See Also:
Map.containsValue(Object)
containsValue
public boolean containsValue(Object ov)
- Specified by:
containsValue
in interface Map<Float,Double>
putAll
public void putAll(Map<? extends Float,? extends Double> m)
- Specified by:
putAll
in interface Map<Float,Double>
float2DoubleEntrySet
public ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
- Description copied from interface:
Float2DoubleMap
- 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 Float2DoubleMap.entrySet()
so that it returns an ObjectSet
of objects of type Float2DoubleMap.Entry
(the latter makes it possible to
access keys and values with type-specific methods).
- Specified by:
float2DoubleEntrySet
in interface Float2DoubleMap
- Returns:
- a type-specific set view of the mappings contained in this map.
- See Also:
Float2DoubleMap.entrySet()
keySet
public FloatSet keySet()
- Description copied from interface:
Float2DoubleMap
- 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 Float2DoubleMap
- Specified by:
keySet
in interface Map<Float,Double>
- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
values
public DoubleCollection values()
- Description copied from interface:
Float2DoubleMap
- Returns a set view of the values contained in this map.
Note that this specification strengthens the one given in Map.values()
.
- Specified by:
values
in interface Float2DoubleMap
- Specified by:
values
in interface Map<Float,Double>
- Returns:
- a set view of the values contained in this map.
- See Also:
Map.values()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map<Float,Double>
entrySet
public ObjectSet<Map.Entry<Float,Double>> entrySet()
- Description copied from interface:
Float2DoubleMap
- 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 Float2DoubleMap
- Specified by:
entrySet
in interface Map<Float,Double>
- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map<Float,Double>
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Map<Float,Double>
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.