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