public class InFlightMap<V> extends Object
| Constructor and Description |
|---|
InFlightMap() |
| Modifier and Type | Method and Description |
|---|---|
V |
get(Long key)
Returns the mapped value for this key or null if the key has not been registered.
|
void |
put(Long key,
V value)
Adds a new mapping.
|
boolean |
remove(Long key)
Attempts to remove this object from the map.
|
String |
toString() |
void |
truncate(Long key)
Attempts to remove all objects at this key or higher from the map.
|
public void put(Long key, V value)
key - The key of the mappingvalue - The value corresponding to the key provided.IllegalArgumentException - if a mapping for the key already existspublic V get(Long key)
key - The key to use for retrieving the value from the mappublic boolean remove(Long key)
key - The object to attempt unregistering.public void truncate(Long key)
key - The object to attempt unregistering.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.