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

Method walk

chapter17/src/main/java/com/seaofnodes/simple/node/Node.java:623–628  ·  view source on GitHub ↗
( Function<Node,E> pred )

Source from the content-addressed store, hash-verified

621 // not-null result.
622 private static final BitSet WVISIT = new BitSet();
623 final public <E> E walk( Function<Node,E> pred ) {
624 assert WVISIT.isEmpty();
625 E rez = _walk(pred);
626 WVISIT.clear();
627 return rez;
628 }
629
630 private <E> E _walk( Function<Node,E> pred ) {
631 if( WVISIT.get(_nid) ) return null; // Been there, done that

Callers 3

findMethod · 0.95
progressOnListMethod · 0.45
typeCheckMethod · 0.45

Calls 3

_walkMethod · 0.95
isEmptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected