MCPcopy Create free account
hub / github.com/casidiablo/persistence / add

Method add

src/main/java/com/codeslap/persistence/Node.java:60–66  ·  view source on GitHub ↗
(Node node)

Source from the content-addressed store, hash-verified

58 } while (true);
59 List<Node> allButMe = new ArrayList<Node>() {
60 @Override
61 public boolean add(Node node) {
62 if (contains(node)) {
63 return false;
64 }
65 return super.add(node);
66 }
67 };
68 if (root.mContent != mContent) {
69 allButMe.add(root);

Callers 15

testConstraintsMethod · 0.80
findAllByClassTestMethod · 0.80
testAttachedToMethod · 0.80
testHasManyMethod · 0.80
testDeleteMethod · 0.80
testDeleteAnnotationsMethod · 0.80
testNodeMethod · 0.80
registerMethod · 0.80
storeMethod · 0.80

Calls

no outgoing calls

Tested by 10

testConstraintsMethod · 0.64
findAllByClassTestMethod · 0.64
testAttachedToMethod · 0.64
testHasManyMethod · 0.64
testDeleteMethod · 0.64
testDeleteAnnotationsMethod · 0.64
testNodeMethod · 0.64