public abstract class AbstractChar2ObjectMap<V> extends AbstractChar2ObjectFunction<V> implements Char2ObjectMap<V>, Serializable
Optional operations just throw an UnsupportedOperationException. Generic versions of accessors delegate to
the corresponding type-specific counterparts following the interface rules
(they take care of returning null on a missing key).
As a further help, this class provides a BasicEntry inner class
that implements a type-specific version of Map.Entry; it
is particularly useful for those classes that do not implement their own
entries (e.g., most immutable maps).
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
AbstractChar2ObjectMap.BasicEntry<V>
This class provides a basic but complete type-specific entry class for all those maps implementations
that do not have entries on their own (e.g., most immutable maps).
|
Char2ObjectMap.Entry<V>, Char2ObjectMap.FastEntrySet<V>defRetValue| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
AbstractChar2ObjectMap() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
containsKey(char k)
Checks whether the given value is contained in
keySet(). |
boolean |
containsValue(Object v)
Checks whether the given value is contained in
values(). |
ObjectSet<Map.Entry<Character,V>> |
entrySet()
Returns a set view of the mappings contained in this map.
|
boolean |
equals(Object o) |
int |
hashCode()
Returns a hash code for this map.
|
boolean |
isEmpty() |
CharSet |
keySet()
Returns a type-specific-set view of the keys of this map.
|
void |
putAll(Map<? extends Character,? extends V> m)
Puts all pairs in the given map.
|
String |
toString() |
ObjectCollection<V> |
values()
Returns a type-specific-set view of the values of this map.
|
clear, containsKey, defaultReturnValue, defaultReturnValue, get, put, put, remove, removechar2ObjectEntrySetdefaultReturnValue, defaultReturnValue, get, put, removeclear, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, get, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic boolean containsValue(Object v)
values().containsValue インタフェース内 Map<Character,V>public boolean containsKey(char k)
keySet().containsKey インタフェース内 Char2ObjectFunction<V>Function.containsKey(Object)public void putAll(Map<? extends Character,? extends V> m)
public CharSet keySet()
The view is backed by the set returned by 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.
keySet インタフェース内 Char2ObjectMap<V>keySet インタフェース内 Map<Character,V>Map.keySet()public ObjectCollection<V> values()
The view is backed by the set returned by 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.
values インタフェース内 Char2ObjectMap<V>values インタフェース内 Map<Character,V>Map.values()public ObjectSet<Map.Entry<Character,V>> entrySet()
Char2ObjectMapNote that this specification strengthens the one given in Map.entrySet().
entrySet インタフェース内 Char2ObjectMap<V>entrySet インタフェース内 Map<Character,V>Map.entrySet()public int hashCode()
public boolean equals(Object o)
Copyright © 2011–2016. All rights reserved.