MCPcopy Create free account
hub / github.com/badvision/jace / StateValue

Method StateValue

src/main/java/jace/state/StateValue.java:40–52  ·  view source on GitHub ↗
(ObjectGraphNode<T> node)

Source from the content-addressed store, hash-verified

38 public T value;
39
40 public StateValue(ObjectGraphNode<T> node) {
41 this.node = node;
42 this.type = this.node.type;
43// if (node.name.equals("Z")) {
44// System.out.println("Z >>>> "+ String.valueOf(node.getCurrentValue()));
45// System.out.println(String.valueOf(copyObject(node.getCurrentValue())));
46// }
47 value = copyObject(this.node.getCurrentValue());
48// System.out.print(node.parent != null ? node.parent.name + "." : "");
49// System.out.print(node.name);
50// System.out.print("==");
51// System.out.println(value == null ? "NULL" : value.getClass().toString());
52 }
53
54 public void mergeValue(StateValue<T> previous) {
55 // Do nothing -- this is here in case it is necessary to implement partial changes

Callers

nothing calls this directly

Calls 2

copyObjectMethod · 0.95
getCurrentValueMethod · 0.45

Tested by

no test coverage detected