- java.lang.Object
-
- io.github.astrapi69.gen.tree.handler.IBaseTreeNodeHandlerExtensions
-
public class IBaseTreeNodeHandlerExtensions extends java.lang.Object
The classIBaseTreeNodeHandlerExtensions
provides handler methods for the classIBaseTreeNode
-
-
Constructor Summary
Constructors Constructor Description IBaseTreeNodeHandlerExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V,K,T extends IBaseTreeNode<V,K,T>>
TfindById(T treeNode, K id)
Find the occurrence ofIBaseTreeNode
object from the given key object that serves as the search target
-
-
-
Method Detail
-
findById
public static <V,K,T extends IBaseTreeNode<V,K,T>> T findById(@NonNull T treeNode, K id)
Find the occurrence ofIBaseTreeNode
object from the given key object that serves as the search target- Type Parameters:
V
- the generic type of the valueK
- the generic type of the id of the nodeT
- the generic type of the concrete tree node- Parameters:
treeNode
- the tree nodeid
- the id for the search process- Returns:
- the first occurrence of
IBaseTreeNode
object that have the same value as the given value
-
-