接口的使用
cool.scx.util.tree.ScxTreeVisitor
使用ScxTreeVisitor的程序包
-
cool.scx.util.tree中ScxTreeVisitor的使用
参数类型为ScxTreeVisitor的cool.scx.util.tree中的方法修饰符和类型方法说明static <T extends ScxTree<T>>
voidScxTreeUtils.walk(T scxTree, ScxTreeVisitor<T> visitor) walk.static <T extends ScxTree<T>>
voidScxTreeUtils.walk1(T scxTree, ScxTreeVisitor<T> visitor) walk 的另一种写法 稍慢于 walk (必须实现ScxTree.parent())