public static class Byte2DoubleSortedMaps.Singleton extends Byte2DoubleMaps.Singleton implements Byte2DoubleSortedMap, Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific sorted map.
Byte2DoubleSortedMap.FastSortedEntrySet
Byte2DoubleMap.Entry, Byte2DoubleMap.FastEntrySet
Modifier and Type | Method and Description |
---|---|
ObjectSortedSet<Byte2DoubleMap.Entry> |
byte2DoubleEntrySet()
Returns a type-specific set view of the mappings contained in this map.
|
ByteComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ObjectSortedSet<Map.Entry<Byte,Double>> |
entrySet()
Returns a set view of the mappings contained in this map.
|
byte |
firstByteKey() |
Byte |
firstKey() |
Byte2DoubleSortedMap |
headMap(byte to)
Returns a view of the portion of this sorted map whose keys are strictly less than
toKey . |
Byte2DoubleSortedMap |
headMap(Byte oto)
Returns a view of the portion of this sorted map whose keys are strictly less than
toKey . |
ByteSortedSet |
keySet()
Returns a set view of the keys contained in this map.
|
byte |
lastByteKey() |
Byte |
lastKey() |
Byte2DoubleSortedMap |
subMap(byte from,
byte to)
Returns a view of the portion of this sorted map whose keys range from
fromKey , inclusive, to toKey , exclusive. |
Byte2DoubleSortedMap |
subMap(Byte ofrom,
Byte oto)
Returns a view of the portion of this sorted map whose keys range from
fromKey , inclusive, to toKey , exclusive. |
Byte2DoubleSortedMap |
tailMap(byte from)
Returns a view of the portion of this sorted map whose keys are greater than or equal to
fromKey . |
Byte2DoubleSortedMap |
tailMap(Byte ofrom)
Returns a view of the portion of this sorted map whose keys are greater than or equal to
fromKey . |
containsValue, containsValue, equals, hashCode, isEmpty, putAll, toString, values
clone, containsKey, get, size
clear, containsKey, defaultReturnValue, defaultReturnValue, get, put, put, remove, remove
values
containsValue
containsKey, defaultReturnValue, defaultReturnValue, get, put, remove
public ByteComparator comparator()
Byte2DoubleSortedMap
Note that this specification strengthens the one given in SortedMap.comparator()
.
comparator
in interface Byte2DoubleSortedMap
comparator
in interface SortedMap<Byte,Double>
SortedMap.comparator()
public ObjectSortedSet<Byte2DoubleMap.Entry> byte2DoubleEntrySet()
Byte2DoubleMap
This method is necessary because there is no inheritance along
type parameters: it is thus impossible to strengthen Byte2DoubleMap.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).
byte2DoubleEntrySet
in interface Byte2DoubleMap
byte2DoubleEntrySet
in interface Byte2DoubleSortedMap
byte2DoubleEntrySet
in class Byte2DoubleMaps.Singleton
Byte2DoubleMap.entrySet()
public ObjectSortedSet<Map.Entry<Byte,Double>> entrySet()
Byte2DoubleMap
Note that this specification strengthens the one given in Map.entrySet()
.
entrySet
in interface Byte2DoubleMap
entrySet
in interface Byte2DoubleSortedMap
entrySet
in interface Map<Byte,Double>
entrySet
in interface SortedMap<Byte,Double>
entrySet
in class Byte2DoubleMaps.Singleton
Map.entrySet()
public ByteSortedSet keySet()
Byte2DoubleMap
Note that this specification strengthens the one given in Map.keySet()
.
keySet
in interface Byte2DoubleMap
keySet
in interface Byte2DoubleSortedMap
keySet
in interface Map<Byte,Double>
keySet
in interface SortedMap<Byte,Double>
keySet
in class Byte2DoubleMaps.Singleton
Map.keySet()
public Byte2DoubleSortedMap subMap(byte from, byte to)
Byte2DoubleSortedMap
fromKey
, inclusive, to toKey
, exclusive.subMap
in interface Byte2DoubleSortedMap
SortedMap.subMap(Object,Object)
public Byte2DoubleSortedMap headMap(byte to)
Byte2DoubleSortedMap
toKey
.headMap
in interface Byte2DoubleSortedMap
SortedMap.headMap(Object)
public Byte2DoubleSortedMap tailMap(byte from)
Byte2DoubleSortedMap
fromKey
.tailMap
in interface Byte2DoubleSortedMap
SortedMap.tailMap(Object)
public byte firstByteKey()
firstByteKey
in interface Byte2DoubleSortedMap
SortedMap.firstKey()
public byte lastByteKey()
lastByteKey
in interface Byte2DoubleSortedMap
SortedMap.lastKey()
public Byte2DoubleSortedMap headMap(Byte oto)
Byte2DoubleSortedMap
toKey
.
Note that this specification strengthens the one given in SortedMap.headMap(Object)
.
headMap
in interface Byte2DoubleSortedMap
headMap
in interface SortedMap<Byte,Double>
SortedMap.headMap(Object)
public Byte2DoubleSortedMap tailMap(Byte ofrom)
Byte2DoubleSortedMap
fromKey
.
Note that this specification strengthens the one given in SortedMap.tailMap(Object)
.
tailMap
in interface Byte2DoubleSortedMap
tailMap
in interface SortedMap<Byte,Double>
SortedMap.tailMap(Object)
public Byte2DoubleSortedMap subMap(Byte ofrom, Byte oto)
Byte2DoubleSortedMap
fromKey
, inclusive, to toKey
, exclusive.
Note that this specification strengthens the one given in SortedMap.subMap(Object,Object)
.
subMap
in interface Byte2DoubleSortedMap
subMap
in interface SortedMap<Byte,Double>
SortedMap.subMap(Object,Object)