|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.chars.AbstractChar2ByteFunction
it.unimi.dsi.fastutil.chars.Char2ByteFunctions.Singleton
it.unimi.dsi.fastutil.chars.Char2ByteMaps.Singleton
it.unimi.dsi.fastutil.chars.Char2ByteSortedMaps.Singleton
public static class Char2ByteSortedMaps.Singleton
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.chars.Char2ByteSortedMap |
|---|
Char2ByteSortedMap.FastSortedEntrySet |
| Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.chars.Char2ByteMap |
|---|
Char2ByteMap.Entry, Char2ByteMap.FastEntrySet |
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
ObjectSortedSet<Char2ByteMap.Entry> |
char2ByteEntrySet()
Returns a type-specific set view of the mappings contained in this map. |
CharComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering. |
ObjectSortedSet<Map.Entry<Character,Byte>> |
entrySet()
Returns a set view of the mappings contained in this map. |
char |
firstCharKey()
|
Character |
firstKey()
|
Char2ByteSortedMap |
headMap(char to)
Returns a view of the portion of this sorted map whose keys are strictly less than toKey. |
Char2ByteSortedMap |
headMap(Character oto)
Returns a view of the portion of this sorted map whose keys are strictly less than toKey. |
CharSortedSet |
keySet()
Returns a set view of the keys contained in this map. |
char |
lastCharKey()
|
Character |
lastKey()
|
Char2ByteSortedMap |
subMap(Character ofrom,
Character oto)
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive. |
Char2ByteSortedMap |
subMap(char from,
char to)
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive. |
Char2ByteSortedMap |
tailMap(char from)
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey. |
Char2ByteSortedMap |
tailMap(Character ofrom)
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.chars.Char2ByteMaps.Singleton |
|---|
containsValue, containsValue, equals, hashCode, isEmpty, putAll, toString, values |
| Methods inherited from class it.unimi.dsi.fastutil.chars.Char2ByteFunctions.Singleton |
|---|
clone, containsKey, get, size |
| Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractChar2ByteFunction |
|---|
clear, containsKey, defaultReturnValue, defaultReturnValue, get, put, put, remove, remove |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.chars.Char2ByteSortedMap |
|---|
values |
| Methods inherited from interface it.unimi.dsi.fastutil.chars.Char2ByteMap |
|---|
containsValue |
| Methods inherited from interface it.unimi.dsi.fastutil.chars.Char2ByteFunction |
|---|
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 |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public CharComparator comparator()
Char2ByteSortedMapNote that this specification strengthens the one given in SortedMap.comparator().
comparator in interface Char2ByteSortedMapcomparator in interface SortedMap<Character,Byte>SortedMap.comparator()public ObjectSortedSet<Char2ByteMap.Entry> char2ByteEntrySet()
Char2ByteMapThis method is necessary because there is no inheritance along
type parameters: it is thus impossible to strengthen Char2ByteMap.entrySet()
so that it returns an ObjectSet
of objects of type Char2ByteMap.Entry (the latter makes it possible to
access keys and values with type-specific methods).
char2ByteEntrySet in interface Char2ByteMapchar2ByteEntrySet in interface Char2ByteSortedMapchar2ByteEntrySet in class Char2ByteMaps.SingletonChar2ByteMap.entrySet()public ObjectSortedSet<Map.Entry<Character,Byte>> entrySet()
Char2ByteMapNote that this specification strengthens the one given in Map.entrySet().
entrySet in interface Char2ByteMapentrySet in interface Char2ByteSortedMapentrySet in interface Map<Character,Byte>entrySet in class Char2ByteMaps.SingletonMap.entrySet()public CharSortedSet keySet()
Char2ByteMapNote that this specification strengthens the one given in Map.keySet().
keySet in interface Char2ByteMapkeySet in interface Char2ByteSortedMapkeySet in interface Map<Character,Byte>keySet in class Char2ByteMaps.SingletonMap.keySet()
public Char2ByteSortedMap subMap(char from,
char to)
Char2ByteSortedMapfromKey, inclusive, to toKey, exclusive.
subMap in interface Char2ByteSortedMapSortedMap.subMap(Object,Object)public Char2ByteSortedMap headMap(char to)
Char2ByteSortedMaptoKey.
headMap in interface Char2ByteSortedMapSortedMap.headMap(Object)public Char2ByteSortedMap tailMap(char from)
Char2ByteSortedMapfromKey.
tailMap in interface Char2ByteSortedMapSortedMap.tailMap(Object)public char firstCharKey()
firstCharKey in interface Char2ByteSortedMapSortedMap.firstKey()public char lastCharKey()
lastCharKey in interface Char2ByteSortedMapSortedMap.lastKey()public Char2ByteSortedMap headMap(Character oto)
Char2ByteSortedMaptoKey.
Note that this specification strengthens the one given in SortedMap.headMap(Object).
headMap in interface Char2ByteSortedMapheadMap in interface SortedMap<Character,Byte>SortedMap.headMap(Object)public Char2ByteSortedMap tailMap(Character ofrom)
Char2ByteSortedMapfromKey.
Note that this specification strengthens the one given in SortedMap.tailMap(Object).
tailMap in interface Char2ByteSortedMaptailMap in interface SortedMap<Character,Byte>SortedMap.tailMap(Object)
public Char2ByteSortedMap subMap(Character ofrom,
Character oto)
Char2ByteSortedMapfromKey, inclusive, to toKey, exclusive.
Note that this specification strengthens the one given in SortedMap.subMap(Object,Object).
subMap in interface Char2ByteSortedMapsubMap in interface SortedMap<Character,Byte>SortedMap.subMap(Object,Object)public Character firstKey()
firstKey in interface SortedMap<Character,Byte>public Character lastKey()
lastKey in interface SortedMap<Character,Byte>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||