diff --git a/src/commonMain/kotlin/com.github.adriankuta/ChildDeclarationInterface.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/ChildDeclarationInterface.kt similarity index 91% rename from src/commonMain/kotlin/com.github.adriankuta/ChildDeclarationInterface.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/ChildDeclarationInterface.kt index 334c5d0..2f61d95 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/ChildDeclarationInterface.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/ChildDeclarationInterface.kt @@ -1,4 +1,4 @@ -package com.github.adriankuta +package com.github.adriankuta.datastructure.tree import kotlin.jvm.JvmSynthetic diff --git a/src/commonMain/kotlin/com.github.adriankuta/iterators/LevelOrderTreeIterator.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/LevelOrderTreeIterator.kt similarity index 91% rename from src/commonMain/kotlin/com.github.adriankuta/iterators/LevelOrderTreeIterator.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/LevelOrderTreeIterator.kt index 5fcf954..87c959d 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/iterators/LevelOrderTreeIterator.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/LevelOrderTreeIterator.kt @@ -1,6 +1,4 @@ -package com.github.adriankuta.iterators - -import com.github.adriankuta.TreeNode +package com.github.adriankuta.datastructure.tree /** * Tree is iterated by using `Level-order Traversal Algorithm" diff --git a/src/commonMain/kotlin/com.github.adriankuta/iterators/PostOrderTreeIterator.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/PostOrderTreeIterator.kt similarity index 93% rename from src/commonMain/kotlin/com.github.adriankuta/iterators/PostOrderTreeIterator.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/PostOrderTreeIterator.kt index 6e54db1..d1c4b11 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/iterators/PostOrderTreeIterator.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/PostOrderTreeIterator.kt @@ -1,6 +1,4 @@ -package com.github.adriankuta.iterators - -import com.github.adriankuta.TreeNode +package com.github.adriankuta.datastructure.tree /** * Tree is iterated by using `Post-order Traversal Algorithm" diff --git a/src/commonMain/kotlin/com.github.adriankuta/iterators/PreOrderTreeIterator.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/PreOrderTreeIterator.kt similarity index 92% rename from src/commonMain/kotlin/com.github.adriankuta/iterators/PreOrderTreeIterator.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/PreOrderTreeIterator.kt index 17e7091..79e73d2 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/iterators/PreOrderTreeIterator.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/PreOrderTreeIterator.kt @@ -1,6 +1,4 @@ -package com.github.adriankuta.iterators - -import com.github.adriankuta.TreeNode +package com.github.adriankuta.datastructure.tree /** * Tree is iterated by using `Pre-order Traversal Algorithm" diff --git a/src/commonMain/kotlin/com.github.adriankuta/TreeNode.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNode.kt similarity index 92% rename from src/commonMain/kotlin/com.github.adriankuta/TreeNode.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNode.kt index b8f17d3..3be6297 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/TreeNode.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNode.kt @@ -1,10 +1,6 @@ -package com.github.adriankuta +package com.github.adriankuta.datastructure.tree -import com.github.adriankuta.iterators.LevelOrderTreeIterator -import com.github.adriankuta.iterators.PostOrderTreeIterator -import com.github.adriankuta.iterators.PreOrderTreeIterator -import com.github.adriankuta.iterators.TreeNodeIterators -import com.github.adriankuta.iterators.TreeNodeIterators.* +import com.github.adriankuta.datastructure.tree.TreeNodeIterators.* import kotlin.jvm.JvmSynthetic open class TreeNode(val value: T) : Iterable>, ChildDeclarationInterface { diff --git a/src/commonMain/kotlin/com.github.adriankuta/TreeNodeExt.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNodeExt.kt similarity index 87% rename from src/commonMain/kotlin/com.github.adriankuta/TreeNodeExt.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNodeExt.kt index d3398d8..77a4419 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/TreeNodeExt.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNodeExt.kt @@ -1,6 +1,5 @@ -package com.github.adriankuta +package com.github.adriankuta.datastructure.tree -import com.github.adriankuta.iterators.TreeNodeIterators import kotlin.jvm.JvmSynthetic typealias ChildDeclaration = ChildDeclarationInterface.() -> Unit diff --git a/src/commonMain/kotlin/com.github.adriankuta/iterators/TreeNodeIterators.kt b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNodeIterators.kt similarity index 97% rename from src/commonMain/kotlin/com.github.adriankuta/iterators/TreeNodeIterators.kt rename to src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNodeIterators.kt index 5e3d71f..f333125 100644 --- a/src/commonMain/kotlin/com.github.adriankuta/iterators/TreeNodeIterators.kt +++ b/src/commonMain/kotlin/com.github.adriankuta/datastructure/tree/TreeNodeIterators.kt @@ -1,4 +1,4 @@ -package com.github.adriankuta.iterators +package com.github.adriankuta.datastructure.tree /** * @see PreOrder diff --git a/src/commonTest/kotlin/com.github.adriankuta/ExampleUnitTest.kt b/src/commonTest/kotlin/com.github.adriankuta/datastructure.tree/ExampleUnitTest.kt similarity index 86% rename from src/commonTest/kotlin/com.github.adriankuta/ExampleUnitTest.kt rename to src/commonTest/kotlin/com.github.adriankuta/datastructure.tree/ExampleUnitTest.kt index a260516..c372078 100644 --- a/src/commonTest/kotlin/com.github.adriankuta/ExampleUnitTest.kt +++ b/src/commonTest/kotlin/com.github.adriankuta/datastructure.tree/ExampleUnitTest.kt @@ -1,4 +1,4 @@ -package com.github.adriankuta +package com.github.adriankuta.datastructure.tree import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.github.adriankuta/TreeNodeTest.kt b/src/commonTest/kotlin/com.github.adriankuta/datastructure.tree/TreeNodeTest.kt similarity index 98% rename from src/commonTest/kotlin/com.github.adriankuta/TreeNodeTest.kt rename to src/commonTest/kotlin/com.github.adriankuta/datastructure.tree/TreeNodeTest.kt index a30fcd6..a3ca1f5 100644 --- a/src/commonTest/kotlin/com.github.adriankuta/TreeNodeTest.kt +++ b/src/commonTest/kotlin/com.github.adriankuta/datastructure.tree/TreeNodeTest.kt @@ -1,6 +1,5 @@ -package com.github.adriankuta +package com.github.adriankuta.datastructure.tree -import com.github.adriankuta.iterators.TreeNodeIterators import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals