java.lang.Object
xyz.cofe.collection.TreeImpl
public class TreeImpl
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TreeImpl() -
Method Summary
Modifier and Type Method Description static <A extends Tree<A>>
java.util.List<Triple<java.lang.Integer,A,A>>append(A tree, A... nodes)static <A extends Tree<A>>
voidappend(A tree, A[] nodes, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> added)static <A extends Tree<A>>
voidappend(A tree, java.lang.Iterable<A> nodes)static <A extends Tree<A>>
voidappend(A tree, java.lang.Iterable<A> nodes, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> added)static <A extends Tree<A>>
voidclear(Tree<A> tree)static <A extends Tree<A>>
voidclear(Tree<A> tree, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> deleted)static <A extends Tree<A>>
voiddeleteByIndex(Tree<A> tree, int... index)static <A extends Tree<A>>
voiddeleteByIndex(Tree<A> tree, int[] index, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> deleted)static <A extends Tree<A>>
voiddeleteByIndex(Tree<A> tree, java.lang.Iterable<java.lang.Integer> index)static <A extends Tree<A>>
voiddeleteByIndex(Tree<A> tree, java.lang.Iterable<java.lang.Integer> index, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> deleted)static <A extends Tree<A>>
voiddeleteByValue(Tree<A> tree, A... value)static <A extends Tree<A>>
voiddeleteByValue(Tree<A> tree, A[] value, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> deleted)static <A extends Tree<A>>
voiddeleteByValue(Tree<A> tree, java.lang.Iterable<A> value)static <A extends Tree<A>>
voiddeleteByValue(Tree<A> tree, java.lang.Iterable<A> value, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> deleted)static <A extends Tree<A>>
java.util.List<Triple<java.lang.Integer,A,A>>insert(Tree<A> tree, int index, A... nodes)static <A extends Tree<A>>
voidinsert(Tree<A> tree, int index, A[] nodes, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> added)static <A extends Tree<A>>
java.util.List<Triple<java.lang.Integer,A,A>>insert(Tree<A> tree, int index, java.lang.Iterable<A> nodes)static <A extends Tree<A>>
voidinsert(Tree<A> tree, int index, java.lang.Iterable<A> nodes, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> added)static <A extends Tree<A>>
Anode(Tree<A> tree, int index)static intnodesCount(Tree tree)static <A extends Tree<A>>
java.util.List<A>nodesOf(Tree<A> tree)static <A extends Tree<A>>
java.util.List<Triple<java.lang.Integer,A,A>>set(Tree<A> tree, int index, A... values)static <A extends Tree<A>>
voidset(Tree<A> tree, int index, A[] values, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> added)static <A extends Tree<A>>
java.util.List<Triple<java.lang.Integer,A,A>>set(Tree<A> tree, int index, java.lang.Iterable<A> values)static <A extends Tree<A>>
voidset(Tree<A> tree, int index, java.lang.Iterable<A> values, java.util.function.Consumer<Triple<java.lang.Integer,A,A>> added)
-
Field Details
-
Constructor Details
-
TreeImpl
public TreeImpl()
-
-
Method Details