avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-web-support
/
io.github.lishangbu.avalon.web.util
/
TreeUtils
/
buildTree
build
Tree
@
JvmStatic
fun
<
T
:
Any
,
I
>
buildTree
(
list
:
List
<
T
>
?
,
idGetter
:
Function
<
T
,
I
>
,
parentIdGetter
:
Function
<
T
,
I
>
,
childrenSetter
:
BiConsumer
<
T
,
List
<
T
>
>
)
:
List
<
T
>
将列表构建为树结构