public abstract class LongMap<V> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LongMap.LongMapIterator<V>
Iterates over LongMap key and values without boxing long keys
|
Constructor and Description |
---|
LongMap() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Removes all mappings from this hash map, leaving it empty.
|
abstract V |
get(long key)
Returns the value of the mapping with the specified key.
|
abstract boolean |
isEmpty()
Returns whether this map is empty.
|
abstract LongMap.LongMapIterator<V> |
longMapIterator() |
abstract V |
put(long key,
V value)
Maps the specified key to the specified value.
|
abstract V |
remove(long key)
Removes the mapping from this map
|
abstract int |
size()
Returns the number of elements in this map.
|
String |
toString() |
abstract Iterator<V> |
valuesIterator() |
public abstract void clear()
public abstract V get(long key)
key
- the key.null
if no mapping for the specified key is found.public abstract boolean isEmpty()
true
if this map has no elements, false
otherwise.size()
public abstract V put(long key, V value)
key
- the key.value
- the value.null
if there was no such mapping.public abstract V remove(long key)
key
- to removepublic abstract int size()
public abstract LongMap.LongMapIterator<V> longMapIterator()
Copyright © 2019. All rights reserved.