public class NodeMap<T> extends NodeIdAccessor
Modifier and Type | Field and Description |
---|---|
private static int |
MIN_REALLOC_SIZE |
protected Object[] |
values |
epoch, graph
Constructor and Description |
---|
NodeMap(Graph graph) |
NodeMap(NodeMap<T> copyFrom) |
Modifier and Type | Method and Description |
---|---|
private boolean |
check(Node node) |
private void |
checkAndGrow(Node node) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Iterable<Map.Entry<Node,T>> |
entries() |
T |
get(Node node) |
T |
getAndGrow(Node node) |
protected Node |
getKey(int i) |
Graph |
graph() |
boolean |
isEmpty() |
boolean |
isNew(Node node) |
void |
set(Node node,
T value) |
void |
setAndGrow(Node node,
T value) |
int |
size() |
String |
toString() |
getGraph, getNodeId, verifyIdsAreStable
private static final int MIN_REALLOC_SIZE
public T getAndGrow(Node node)
private void checkAndGrow(Node node)
public boolean isEmpty()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public void setAndGrow(Node node, T value)
protected Node getKey(int i)
i
- i
public int size()
public void clear()