Package | Description |
---|---|
ej.basictool.map |
Modifier and Type | Method and Description |
---|---|
Set<K> |
AbstractPackedMap.keySet()
Returns an unmodifiable
Set view of the keys contained in this map. |
Collection<V> |
AbstractPackedMap.values()
Returns an unmodifiable
Collection view of the values contained in this map. |
protected Object |
AbstractPackedMap.wrapKey(K key)
Wraps a key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractPackedMap.containsKey(Object key)
Returns
true if this map contains a mapping for the specified key. |
boolean |
AbstractPackedMap.containsValue(Object value)
Returns
true if this map maps one or more keys to the specified value. |
V |
AbstractPackedMap.get(Object key)
Returns the value to which the specified key is mapped, or
null if this map contains no mapping for the
key. |
protected int |
AbstractPackedMap.getKeyHashCode(Object key)
Gets the hash code of a key.
|
protected int |
AbstractPackedMap.getWrappedKeyHashCode(Object wrappedKey)
Gets the hash code of a key stored in the packed map.
|
protected abstract boolean |
AbstractPackedMap.isSame(Object key,
Object candidateKey)
Checks whether two keys are equal or not.
|
V |
AbstractPackedMap.put(K key,
V value)
Associates the specified value with the specified key in this map.
|
V |
AbstractPackedMap.remove(Object key)
Removes the mapping for a key from this map if it is present.
|
protected K |
AbstractPackedMap.unwrapKey(Object wrappedKey)
Unwraps a wrapped key.
|
protected Object |
AbstractPackedMap.wrapKey(K key)
Wraps a key.
|
Constructor and Description |
---|
AbstractPackedMap(AbstractPackedMap<K,V> map)
Constructs a map with the same mappings as the specified map.
|