@Generated(date="2015-06-17T12:23:42+0000",
value="HPPC generated from: ObjectShortMap.java")
public interface ObjectShortMap<KType>
extends ObjectShortAssociativeContainer<KType>
| Modifier and Type | Method and Description |
|---|---|
short |
addTo(KType key,
short additionValue)
An equivalent of calling
|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this set for equality.
|
short |
get(KType key) |
short |
getOrDefault(KType key,
short defaultValue) |
int |
hashCode() |
short |
put(KType key,
short value)
Place a given key and value in the container.
|
int |
putAll(java.lang.Iterable<? extends ObjectShortCursor<? extends KType>> iterable)
Puts all keys from an iterable cursor to this map, replacing the values
of existing keys, if such keys are present.
|
int |
putAll(ObjectShortAssociativeContainer<? extends KType> container)
Puts all keys from another container to this map, replacing the values
of existing keys, if such keys are present.
|
short |
putOrAdd(KType key,
short putValue,
short additionValue)
Trove-inspired API method.
|
short |
remove(KType key)
Remove all values at the given key.
|
short put(KType key, short value)
short addTo(KType key, short 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).short putOrAdd(KType key, short putValue, short additionValue)
if (containsKey(key))
{
short v = (short) (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).short get(KType key)
short getOrDefault(KType key, short defaultValue)
int putAll(ObjectShortAssociativeContainer<? extends KType> container)
int putAll(java.lang.Iterable<? extends ObjectShortCursor<? extends KType>> iterable)
short remove(KType key)
boolean equals(java.lang.Object obj)
ObjectShortMap and both objects contains exactly the same key-value pairs.equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.ObjectCopyright © 2015 Carrot Search s.c.. All rights reserved.