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

Method swap12

chapter05/src/main/java/com/seaofnodes/simple/node/Node.java:345–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343
344 // Swap inputs without letting either input go dead during the swap.
345 Node swap12() {
346 Node tmp = in(1);
347 _inputs.set(1,in(2));
348 _inputs.set(2,tmp);
349 return this;
350 }
351
352 // does this node contain all constants?
353 // 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