MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / Node

Method Node

chapter01/src/main/java/com/seaofnodes/simple/node/Node.java:46–54  ·  view source on GitHub ↗
(Node... inputs)

Source from the content-addressed store, hash-verified

44 Collections.addAll(_inputs,inputs);
45 _outputs = new ArrayList<>();
46 for( Node n : _inputs )
47 if( n != null )
48 n._outputs.add( this );
49 }
50
51 /**
52 * Gets the ith input node
53 * @param i Offset of the input node
54 * @return Input node or null
55 */
56 public Node in(int i) { return _inputs.get(i); }
57

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected