예제 #1
0
 public boolean hasVal(NodeCursor<A, V> node) {
   return valstore.get(node.index()) != null;
 }
예제 #2
0
 public void setVal(NodeCursor<A, V> node, V v) {
   // Also, vals cannot be primitive types. Need a 'null' to indicate invalid.
   assert (v != null);
   valstore.set(node.index(), v);
 }
예제 #3
0
 public V getVal(NodeCursor<A, V> node) {
   return valstore.get(node.index());
 }