Package org.eclipse.jgit.util
Class LongMap<V>
- java.lang.Object
-
- org.eclipse.jgit.util.LongMap<V>
-
- Type Parameters:
V
- type of the value instance.
public class LongMap<V> extends Object
Simple Map<long, Object>.- Since:
- 4.9
-
-
Constructor Summary
Constructors Constructor Description LongMap()
Initialize an empty LongMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(long key)
Whetherkey
is present in the map.V
get(long key)
Get value for thiskey
V
put(long key, V value)
Put a new entry into the mapV
remove(long key)
Remove an entry from the map
-
-
-
Method Detail
-
containsKey
public boolean containsKey(long key)
Whetherkey
is present in the map.- Parameters:
key
- the key to find.- Returns:
true
ifkey
is present in the map.
-
get
public V get(long key)
Get value for thiskey
- Parameters:
key
- the key to find.- Returns:
- stored value for this key, or
null
.
-
remove
public V remove(long key)
Remove an entry from the map- Parameters:
key
- key to remove from the map.- Returns:
- old value of the key, or
null
.
-
-