public interface LongIntMap extends LongIntIterable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_VALUE |
static LongIntMap |
EMPTY |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(long key) |
boolean |
containsKeys(LongIterable keys) |
boolean |
equals(java.lang.Object o)
Compares the specified object with this map for equality.
|
int |
get(long key) |
int |
hashCode() |
boolean |
isEmpty() |
LongSet |
keySet() |
LongIterator |
keysIterator() |
int |
size() |
IntIterator |
valuesIterator() |
iterator
static final LongIntMap EMPTY
static final int DEFAULT_VALUE
int get(long key)
key
. Otherwise returns default value.boolean containsKey(long key)
key
. Otherwise falseboolean containsKeys(LongIterable keys)
keys
.
Otherwise falseint size()
boolean isEmpty()
LongIterator keysIterator()
IntIterator valuesIterator()
boolean equals(java.lang.Object o)
LongIntMap
and both objects contain exactly the same key-value pairs,
regardless of their orderequals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object