public static class Byte2ByteSortedMaps.Singleton extends Byte2ByteMaps.Singleton implements Byte2ByteSortedMap, Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific sorted map.
Byte2ByteSortedMap.FastSortedEntrySet
Byte2ByteMap.Entry, Byte2ByteMap.FastEntrySet
Modifier and Type | Method and Description |
---|---|
ObjectSortedSet<Byte2ByteMap.Entry> |
byte2ByteEntrySet()
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,Byte>> |
entrySet()
Returns a set view of the mappings contained in this map.
|
byte |
firstByteKey() |
Byte |
firstKey() |
Byte2ByteSortedMap |
headMap(byte to)
Returns a view of the portion of this sorted map whose keys are strictly less than
toKey . |
Byte2ByteSortedMap |
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() |
Byte2ByteSortedMap |
subMap(byte from,
byte to)
Returns a view of the portion of this sorted map whose keys range from
fromKey , inclusive, to toKey , exclusive. |
Byte2ByteSortedMap |
subMap(Byte ofrom,
Byte oto)
Returns a view of the portion of this sorted map whose keys range from
fromKey , inclusive, to toKey , exclusive. |
Byte2ByteSortedMap |
tailMap(byte from)
Returns a view of the portion of this sorted map whose keys are greater than or equal to
fromKey . |
Byte2ByteSortedMap |
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
clear, containsKey, get, put, remove, size
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
public ByteComparator comparator()
Byte2ByteSortedMap
Note that this specification strengthens the one given in SortedMap.comparator()
.
comparator
in interface Byte2ByteSortedMap
comparator
in interface SortedMap<Byte,Byte>
SortedMap.comparator()
public ObjectSortedSet<Byte2ByteMap.Entry> byte2ByteEntrySet()
Byte2ByteMap
This method is necessary because there is no inheritance along type parameters: it is thus impossible to strengthen Byte2ByteMap.entrySet()
so that it returns an
ObjectSet
of type-specific entries (the latter makes it possible to access keys and values with type-specific methods).
byte2ByteEntrySet
in interface Byte2ByteMap
byte2ByteEntrySet
in interface Byte2ByteSortedMap
byte2ByteEntrySet
in class Byte2ByteMaps.Singleton
Byte2ByteMap.entrySet()
public ObjectSortedSet<Map.Entry<Byte,Byte>> entrySet()
Byte2ByteMap
Note that this specification strengthens the one given in Map.entrySet()
.
entrySet
in interface Byte2ByteMap
entrySet
in interface Byte2ByteSortedMap
entrySet
in interface Map<Byte,Byte>
entrySet
in interface SortedMap<Byte,Byte>
entrySet
in class Byte2ByteMaps.Singleton
Map.entrySet()
public ByteSortedSet keySet()
Byte2ByteMap
Note that this specification strengthens the one given in Map.keySet()
.
keySet
in interface Byte2ByteMap
keySet
in interface Byte2ByteSortedMap
keySet
in interface Map<Byte,Byte>
keySet
in interface SortedMap<Byte,Byte>
keySet
in class Byte2ByteMaps.Singleton
Map.keySet()
public Byte2ByteSortedMap subMap(byte from, byte to)
Byte2ByteSortedMap
fromKey
, inclusive, to toKey
, exclusive.subMap
in interface Byte2ByteSortedMap
SortedMap.subMap(Object,Object)
public Byte2ByteSortedMap headMap(byte to)
Byte2ByteSortedMap
toKey
.headMap
in interface Byte2ByteSortedMap
SortedMap.headMap(Object)
public Byte2ByteSortedMap tailMap(byte from)
Byte2ByteSortedMap
fromKey
.tailMap
in interface Byte2ByteSortedMap
SortedMap.tailMap(Object)
public byte firstByteKey()
firstByteKey
in interface Byte2ByteSortedMap
SortedMap.firstKey()
public byte lastByteKey()
lastByteKey
in interface Byte2ByteSortedMap
SortedMap.lastKey()
public Byte2ByteSortedMap headMap(Byte oto)
Byte2ByteSortedMap
toKey
.
Note that this specification strengthens the one given in SortedMap.headMap(Object)
.
headMap
in interface Byte2ByteSortedMap
headMap
in interface SortedMap<Byte,Byte>
SortedMap.headMap(Object)
public Byte2ByteSortedMap tailMap(Byte ofrom)
Byte2ByteSortedMap
fromKey
.
Note that this specification strengthens the one given in SortedMap.tailMap(Object)
.
tailMap
in interface Byte2ByteSortedMap
tailMap
in interface SortedMap<Byte,Byte>
SortedMap.tailMap(Object)
public Byte2ByteSortedMap subMap(Byte ofrom, Byte oto)
Byte2ByteSortedMap
fromKey
, inclusive, to toKey
, exclusive.
Note that this specification strengthens the one given in SortedMap.subMap(Object,Object)
.
subMap
in interface Byte2ByteSortedMap
subMap
in interface SortedMap<Byte,Byte>
SortedMap.subMap(Object,Object)