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

Method swap12

chapter14/src/main/java/com/seaofnodes/simple/node/Node.java:570–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

568
569 // Swap inputs without letting either input go dead during the swap.
570 Node swap12() {
571 unlock(); // Hash is order dependent
572 Node tmp = in(1);
573 _inputs.set(1,in(2));
574 _inputs.set(2,tmp);
575 return this;
576 }
577
578 /**
579 * Does this node contain all constants? Ignores in(0), as is usually

Callers 6

idealizeMethod · 0.45
idealizeMethod · 0.45
idealizeMethod · 0.45
idealizeMethod · 0.45
idealizeMethod · 0.45
idealizeMethod · 0.45

Calls 3

unlockMethod · 0.95
inMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected