public abstract class AbstractLongMap<V> extends AbstractMap<Long,V> implements LongMap<V>
LongMap
interface, to minimize the effort required to implement this interface.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
LongMap.Entry<V>
Constructor and Description |
---|
AbstractLongMap() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear() |
abstract boolean |
containsKey(long key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsKey(Object key) |
abstract Set<Map.Entry<Long,V>> |
entrySet() |
abstract V |
get(long key)
Returns the value to which this map maps the specified key.
|
V |
get(Object key) |
Set<Long> |
keySet()
Returns the same value as
longKeySet() method does. |
abstract LongSet |
longKeySet()
Returns a set view of the keys contained in this map.
|
abstract V |
put(long key,
V value)
Associates the specified value with the specified key in this map.
|
V |
put(Long key,
V value) |
abstract V |
remove(long key)
Removes the mapping for this key from this map if present.
|
V |
remove(Object key) |
abstract int |
size() |
abstract Collection<V> |
values() |
clone, containsValue, equals, hashCode, isEmpty, putAll, toString
public abstract int size()
public abstract void clear()
public abstract boolean containsKey(long key)
LongMap
containsKey
in interface LongMap<V>
Map.containsKey(Object)
public abstract V get(long key)
LongMap
get
in interface LongMap<V>
Map.get(Object)
public abstract V put(long key, V value)
LongMap
put
in interface LongMap<V>
Map.put(Object, Object)
public abstract V remove(long key)
LongMap
remove
in interface LongMap<V>
Map.remove(Object)
public abstract LongSet longKeySet()
LongMap
longKeySet
in interface LongMap<V>
Map.keySet()
public abstract Collection<V> values()
public final boolean containsKey(Object key)
containsKey
in interface Map<Long,V>
containsKey
in class AbstractMap<Long,V>
Copyright © 2014 Devexperts. All Rights Reserved.