@Generated(date="2015-02-05T14:41:35+0000", value="HPPC generated from: ShortCharMap.java") public interface ShortCharMap extends ShortCharAssociativeContainer
Modifier and Type | Method and Description |
---|---|
char |
addTo(short key,
char additionValue)
An equivalent of calling
|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this set for equality.
|
char |
get(short key) |
char |
getOrDefault(short key,
char defaultValue) |
int |
hashCode() |
char |
put(short key,
char value)
Place a given key and value in the container.
|
int |
putAll(java.lang.Iterable<? extends ShortCharCursor> iterable)
Puts all keys from an iterable cursor to this map, replacing the values
of existing keys, if such keys are present.
|
int |
putAll(ShortCharAssociativeContainer container)
Puts all keys from another container to this map, replacing the values
of existing keys, if such keys are present.
|
char |
putOrAdd(short key,
char putValue,
char additionValue)
Trove-inspired API method.
|
char |
remove(short key)
Remove all values at the given key.
|
char put(short key, char value)
char addTo(short key, char additionValue)
putOrAdd(key, additionValue, additionValue);
key
- The key of the value to adjust.additionValue
- The value to put or add to the existing value if key
exists.key
(after changes).char putOrAdd(short key, char putValue, char additionValue)
if (containsKey(key)) { char v = (char) (lget() + additionValue); lset(v); return v; } else { put(key, putValue); return putValue; }
key
- The key of the value to adjust.putValue
- The value to put if key
does not exist.additionValue
- The value to add to the existing value if key
exists.key
(after changes).char get(short key)
char getOrDefault(short key, char defaultValue)
int putAll(ShortCharAssociativeContainer container)
int putAll(java.lang.Iterable<? extends ShortCharCursor> iterable)
char remove(short key)
boolean equals(java.lang.Object obj)
ShortCharMap
and both objects contains exactly the same key-value pairs.equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
Copyright © 2015 Carrot Search s.c.. All rights reserved.