Interface IBmLongMap<V>
- 
- Type Parameters:
- V-
 - All Known Implementing Classes:
- BmLongHashMap,- BmLongSegmentSyncMap
 
 public interface IBmLongMap<V>
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceIBmLongMap.IEntry<V>Map entry.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Removes all mappings from this hash map, leaving it empty.booleancontainsKey(long key)Checks if the map contains the specified key.Iterable<IBmLongMap.IEntry<V>>entryIterable()Returns aIterableview of the entries in this map.Vget(long key)Returns the value of the mapping with the specified key.booleanisEmpty()Returns whether this map is empty.Collection<Long>keys()Gets keys contained in this map.Vput(long key, V value)Maps the specified key to the specified value.Vremove(long key)Removes the mapping with the specified key from this map.intsize()Returns the number of elements in this map.Collection<V>values()Gets values contained in this map.
 
- 
- 
- 
Method Detail- 
clearvoid clear() Removes all mappings from this hash map, leaving it empty.
 - 
getV get(long key) Returns the value of the mapping with the specified key.- Parameters:
- key- the key.
- Returns:
- the value of the mapping with the specified key, or nullif no mapping for the specified key is found.
 
 - 
putV put(long key, V value) Maps the specified key to the specified value.- Parameters:
- key- the key.
- value- the value.
- Returns:
- the value of any previous mapping with the specified key or
         nullif there was no such mapping.
 
 - 
removeV remove(long key) Removes the mapping with the specified key from this map.- Parameters:
- key- the key of the mapping to remove.
- Returns:
- the value of the removed mapping or nullif no mapping for the specified key was found.
 
 - 
containsKeyboolean containsKey(long key) Checks if the map contains the specified key.- Parameters:
- key- the key to check.
- Returns:
- trueif the map contains the specified key,- falseotherwise.
 
 - 
valuesCollection<V> values() Gets values contained in this map.- Returns:
- a collection of values, never null.
 
 - 
keysCollection<Long> keys() Gets keys contained in this map.- Returns:
- a collection of keys, never null.
 
 - 
sizeint size() Returns the number of elements in this map.- Returns:
- the number of elements in this map.
 
 - 
isEmptyboolean isEmpty() Returns whether this map is empty.- Returns:
- trueif this map has no elements,- falseotherwise.
- See Also:
- size()
 
 - 
entryIterableIterable<IBmLongMap.IEntry<V>> entryIterable() Returns aIterableview of the entries in this map.- Returns:
 
 
- 
 
-