com.devexperts.util
Interface LongMap<V>

All Superinterfaces:
Map<Long,V>
All Known Implementing Classes:
AbstractLongMap, LongHashMap

public interface LongMap<V>
extends Map<Long,V>

This class extends Map with methods that are specific for long values.


Nested Class Summary
static interface LongMap.Entry<V>
          A map entry (key-value pair).
 
Method Summary
 boolean containsKey(long key)
          Returns true if this map contains a mapping for the specified key.
 V get(long key)
          Returns the value to which this map maps the specified key.
 LongSet longKeySet()
          Returns a set view of the keys contained in this map.
 V put(long key, V value)
          Associates the specified value with the specified key in this map.
 V remove(long key)
          Removes the mapping for this key from this map if present.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

containsKey

boolean containsKey(long key)
Returns true if this map contains a mapping for the specified key.

See Also:
Map.containsKey(Object)

get

V get(long key)
Returns the value to which this map maps the specified key. Returns null if the map contains no mapping for this key.

See Also:
Map.get(Object)

put

V put(long key,
      V value)
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

See Also:
Map.put(Object, Object)

remove

V remove(long key)
Removes the mapping for this key from this map if present.

See Also:
Map.remove(Object)

longKeySet

LongSet longKeySet()
Returns a set view of the keys contained in this map.

See Also:
Map.keySet()


Copyright © 2013 Devexperts. All Rights Reserved.