|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<Long,V>
com.devexperts.util.AbstractLongMap<V>
public abstract class AbstractLongMap<V>
This class provides a skeletal implementation of the LongMap
interface, to minimize the effort required to implement this interface.
AbstractMap
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface com.devexperts.util.LongMap |
---|
LongMap.Entry<V> |
Constructor Summary | |
---|---|
AbstractLongMap()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.util.AbstractMap |
---|
clone, containsValue, equals, hashCode, isEmpty, putAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsValue, equals, hashCode, isEmpty, putAll |
Constructor Detail |
---|
public AbstractLongMap()
Method Detail |
---|
public abstract int size()
size
in interface Map<Long,V>
size
in class AbstractMap<Long,V>
public abstract void clear()
clear
in interface Map<Long,V>
clear
in class AbstractMap<Long,V>
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()
values
in interface Map<Long,V>
values
in class AbstractMap<Long,V>
public abstract Set<Map.Entry<Long,V>> entrySet()
entrySet
in interface Map<Long,V>
entrySet
in class AbstractMap<Long,V>
public final boolean containsKey(Object key)
containsKey
in interface Map<Long,V>
containsKey
in class AbstractMap<Long,V>
public final V get(Object key)
get
in interface Map<Long,V>
get
in class AbstractMap<Long,V>
public final V put(Long key, V value)
put
in interface Map<Long,V>
put
in class AbstractMap<Long,V>
public final V remove(Object key)
remove
in interface Map<Long,V>
remove
in class AbstractMap<Long,V>
public final Set<Long> keySet()
longKeySet()
method does.
keySet
in interface Map<Long,V>
keySet
in class AbstractMap<Long,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |