Modifier and Type | Class and Description |
---|---|
private static class | CharCollections.
An empty map. |
private static class | CharCollections.
the value type stored in the map. V>An unmodifiable wrapper around a |
Modifier and Type | Field and Description |
---|---|
private static final CharObjectMap |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static <V> CharObjectMap | |
public static <V> CharObjectMap |
EMPTY_MAP | back to summary |
---|---|
private static final CharObjectMap<Object> EMPTY_MAP |
CharCollections | back to summary |
---|---|
private CharCollections() |
emptyMap | back to summary |
---|---|
public static <V> CharObjectMap Returns an unmodifiable empty
|
unmodifiableMap | back to summary |
---|---|
public static <V> CharObjectMap Creates an unmodifiable wrapper around the given map. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public void | clear()
Implements java. |
public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
public boolean | containsKey(char key)
Implements io. |
public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
public Iterable | entries()
Implements io. |
public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
public Object | get(char
the key whose associated value is to be returned. key)Implements io. |
public Object | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
public boolean | |
public Set | |
public Object | put(char
the key of the entry. key, Object the value of the entry. value)Implements io. |
public Object | put(Character
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Implements java. |
public void | putAll(Map<? extends Character, ?>
mappings to be stored in this map m)Implements java. |
public Object | remove(char
the key for the entry to be removed from this map. key)Implements io. |
public Object | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
public int | |
public Collection | values()
Implements java. Collection view of the values contained in this map.
|
EmptyMap | back to summary |
---|---|
private EmptyMap() |
clear | back to summary |
---|---|
public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
|
containsKey | back to summary |
---|---|
public boolean containsKey(Object key) Implements java. Doc from java. Returns |
containsKey | back to summary |
---|---|
public boolean containsKey(char key) Implements io. Doc from io. Indicates whether or not this map contains a value for the specified key.
|
containsValue | back to summary |
---|---|
public boolean containsValue(Object value) Implements java. Doc from java. Returns |
entries | back to summary |
---|---|
public Iterable Implements io. Doc from io. Gets an iterable to traverse over the primitive entries contained in this map. As an optimization,
the
|
entrySet | back to summary |
---|---|
public Set Implements java. Doc from java. Returns a |
get | back to summary |
---|---|
public Object get(char key) Implements io. Doc from io. Gets the value in the map with the specified key. |
get | back to summary |
---|---|
public Object get(Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
|
isEmpty | back to summary |
---|---|
public boolean isEmpty() Implements java. Doc from java. Returns
|
keySet | back to summary |
---|---|
public Set Implements java. Doc from java. Returns a |
put | back to summary |
---|---|
public Object put(char key, Object value) Implements io. Doc from io. Puts the given entry into the map. |
put | back to summary |
---|---|
public Object put(Character key, Object value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
|
putAll | back to summary |
---|---|
public void putAll(Map<? extends Character, ?> m) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling |
remove | back to summary |
---|---|
public Object remove(char key) Implements io. Doc from io. Removes the entry with the specified key. |
remove | back to summary |
---|---|
public Object remove(Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. |
size | back to summary |
---|---|
public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
|
values | back to summary |
---|---|
public Collection Implements java. Doc from java. Returns a
|
CharObjectMap
.
Modifier and Type | Class and Description |
---|---|
private class | CharCollections.
Unmodifiable wrapper for an entry. |
private class | CharCollections.
Unmodifiable wrapper for an iterator. |
Modifier and Type | Field and Description |
---|---|
private Iterable | |
private Set | |
private Set | |
private final CharObjectMap | |
private Collection |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public void | clear()
Implements java. |
public boolean | containsKey(char key)
Implements io. |
public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
public Iterable | entries()
Implements io. |
public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
public V | get(char
the key whose associated value is to be returned. key)Implements io. |
public V | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
public boolean | |
public Set | |
public V | put(char
the key of the entry. key, V the value of the entry. value)Implements io. |
public V | put(Character
key with which the specified value is to be associated key, V value to be associated with the specified key value)Implements java. |
public void | putAll(Map<? extends Character, ? extends V>
mappings to be stored in this map m)Implements java. |
public V | remove(char
the key for the entry to be removed from this map. key)Implements io. |
public V | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
public int | |
public Collection | values()
Implements java. Collection view of the values contained in this map.
|
entries | back to summary |
---|---|
private Iterable<CharObjectMap. |
entrySet | back to summary |
---|---|
private Set<Map. |
keySet | back to summary |
---|---|
private Set<Character> keySet |
map | back to summary |
---|---|
private final CharObjectMap<V> map |
values | back to summary |
---|---|
private Collection<V> values |
UnmodifiableMap | back to summary |
---|---|
pack-priv UnmodifiableMap(CharObjectMap<V> map) |
clear | back to summary |
---|---|
public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
|
containsKey | back to summary |
---|---|
public boolean containsKey(char key) Implements io. Doc from io. Indicates whether or not this map contains a value for the specified key.
|
containsKey | back to summary |
---|---|
public boolean containsKey(Object key) Implements java. Doc from java. Returns |
containsValue | back to summary |
---|---|
public boolean containsValue(Object value) Implements java. Doc from java. Returns |
entries | back to summary |
---|---|
public Iterable Implements io. Doc from io. Gets an iterable to traverse over the primitive entries contained in this map. As an optimization,
the
|
entrySet | back to summary |
---|---|
public Set Implements java. Doc from java. Returns a |
get | back to summary |
---|---|
public V get(char key) Implements io. Doc from io. Gets the value in the map with the specified key.
|
get | back to summary |
---|---|
public V get(Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
|
isEmpty | back to summary |
---|---|
public boolean isEmpty() Implements java. Doc from java. Returns
|
keySet | back to summary |
---|---|
public Set Implements java. Doc from java. Returns a |
put | back to summary |
---|---|
public V put(char key, V value) Implements io. Doc from io. Puts the given entry into the map.
|
put | back to summary |
---|---|
public V put(Character key, V value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
|
putAll | back to summary |
---|---|
public void putAll(Map<? extends Character, ? extends V> m) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling |
remove | back to summary |
---|---|
public V remove(char key) Implements io. Doc from io. Removes the entry with the specified key.
|
remove | back to summary |
---|---|
public V remove(Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. |
size | back to summary |
---|---|
public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
|
values | back to summary |
---|---|
public Collection Implements java. Doc from java. Returns a
|
Modifier and Type | Field and Description |
---|---|
private final CharObjectMap. |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public char | key()
Implements io. |
public void | setValue(V value)
Implements io. |
public V | value()
Implements io. |
entry | back to summary |
---|---|
private final CharObjectMap. |
EntryImpl | back to summary |
---|---|
pack-priv EntryImpl(CharObjectMap. |
key | back to summary |
---|---|
public char key() Implements io. Doc from io. Gets the key for this entry.
|
setValue | back to summary |
---|---|
public void setValue(V value) Implements io. Doc from io. Sets the value for this entry.
|
value | back to summary |
---|---|
public V value() Implements io. Doc from io. Gets the value for this entry.
|
Modifier and Type | Field and Description |
---|---|
pack-priv final Iterator |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public boolean | |
public CharObjectMap. | |
public void | remove()
Overrides default java. |
iter | back to summary |
---|---|
pack-priv final Iterator<CharObjectMap. |
IteratorImpl | back to summary |
---|---|
pack-priv IteratorImpl(Iterator<CharObjectMap. |
hasNext | back to summary |
---|---|
public boolean hasNext() Implements java. Doc from java. Returns
|
next | back to summary |
---|---|
public CharObjectMap. Implements java. Doc from java. Returns the next element in the iteration.
|
remove | back to summary |
---|---|
public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
|