Set the correct file structure to maintain backward compatibility. (#18)

This commit is contained in:
2022-12-16 19:05:59 +01:00
committed by GitHub
parent 5dd586f9af
commit ae4757fb9d
9 changed files with 10 additions and 22 deletions

View File

@ -0,0 +1,24 @@
package com.github.adriankuta.datastructure.tree
import kotlin.jvm.JvmSynthetic
interface ChildDeclarationInterface<T> {
/**
* This method is used to easily create child in node.
* ```
* val root = tree("World") {
* child("North America") {
* child("USA")
* }
* child("Europe") {
* child("Poland")
* child("Germany")
* }
* }
* ```
* @return New created TreeNode.
*/
@JvmSynthetic
fun child(value: T, childDeclaration: ChildDeclaration<T>? = null): TreeNode<T>
}