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

Method swap12

chapter06/src/main/java/com/seaofnodes/simple/node/Node.java:366–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364
365 // Swap inputs without letting either input go dead during the swap.
366 Node swap12() {
367 Node tmp = in(1);
368 _inputs.set(1,in(2));
369 _inputs.set(2,tmp);
370 return this;
371 }
372
373 // does this node contain all constants?
374 // 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