@Generated(date="2016-02-06T03:13:45+0000", value="HPPC generated from: ShortDoubleMap.java") public interface ShortDoubleMap extends ShortDoubleAssociativeContainer
Modifier and Type | Method and Description |
---|---|
double |
addTo(short key,
double additionValue)
An equivalent of calling
|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this set for equality.
|
double |
get(short key) |
double |
getOrDefault(short key,
double defaultValue) |
int |
hashCode() |
double |
put(short key,
double value)
Place a given key and value in the container.
|
int |
putAll(java.lang.Iterable<? extends ShortDoubleCursor> iterable)
Puts all keys from an iterable cursor to this map, replacing the values
of existing keys, if such keys are present.
|
int |
putAll(ShortDoubleAssociativeContainer container)
Puts all keys from another container to this map, replacing the values
of existing keys, if such keys are present.
|
double |
putOrAdd(short key,
double putValue,
double additionValue)
Trove-inspired API method.
|
double |
remove(short key)
Remove all values at the given key.
|
double put(short key, double value)
double addTo(short key, double 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).double putOrAdd(short key, double putValue, double additionValue)
if (containsKey(key)) { double v = (double) (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).double get(short key)
double getOrDefault(short key, double defaultValue)
int putAll(ShortDoubleAssociativeContainer container)
int putAll(java.lang.Iterable<? extends ShortDoubleCursor> iterable)
double remove(short key)
boolean equals(java.lang.Object obj)
ShortDoubleMap
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 © 2016 Carrot Search s.c.. All rights reserved.