it.unimi.dsi.fastutil.ints
Class Int2DoubleSortedMaps.Singleton
java.lang.Object
it.unimi.dsi.fastutil.ints.AbstractInt2DoubleMap
it.unimi.dsi.fastutil.ints.Int2DoubleMaps.Singleton
it.unimi.dsi.fastutil.ints.Int2DoubleSortedMaps.Singleton
- All Implemented Interfaces:
- Cloneable, Int2DoubleMap, Int2DoubleSortedMap, Map, Serializable, SortedMap
- Enclosing class:
- Int2DoubleSortedMaps
- public static class Int2DoubleSortedMaps.Singleton
- extends Int2DoubleMaps.Singleton
- implements Int2DoubleSortedMap, 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
| Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2DoubleMap |
clear, containsKey, containsValue, defaultReturnValue, defaultReturnValue, equals, get, getDefRetValue, hashCode, isEmpty, put, put, remove, remove, setDefRetValue, toString |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, put, putAll, remove, size, values |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
comparator
public Comparator comparator()
- Specified by:
comparator in interface SortedMap
keySet
public Set keySet()
- Description copied from class:
AbstractInt2DoubleMap
- 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 Int2DoubleMaps.Singleton
subMap
public Int2DoubleSortedMap subMap(int from,
int to)
- Specified by:
subMap in interface Int2DoubleSortedMap
- See Also:
SortedMap.subMap(Object,Object)
headMap
public Int2DoubleSortedMap headMap(int to)
- Specified by:
headMap in interface Int2DoubleSortedMap
- See Also:
SortedMap.headMap(Object)
tailMap
public Int2DoubleSortedMap tailMap(int from)
- Specified by:
tailMap in interface Int2DoubleSortedMap
- See Also:
SortedMap.tailMap(Object)
firstIntKey
public int firstIntKey()
- Specified by:
firstIntKey in interface Int2DoubleSortedMap
- See Also:
SortedMap.firstKey()
lastIntKey
public int lastIntKey()
- Specified by:
lastIntKey in interface Int2DoubleSortedMap
- 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