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

Method swap12

chapter08/src/main/java/com/seaofnodes/simple/node/Node.java:415–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413
414 // Swap inputs without letting either input go dead during the swap.
415 Node swap12() {
416 Node tmp = in(1);
417 _inputs.set(1,in(2));
418 _inputs.set(2,tmp);
419 return this;
420 }
421
422 // does this node contain all constants?
423 // Ignores in(0), as is usually control.

Callers 2

idealizeMethod · 0.45
idealizeMethod · 0.45

Calls 2

inMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected