forked from openrs2/openrs2
As I'm splitting it up into smaller modules (e.g. compress and crypto) I think util is a more appropriate name for the remainder. Signed-off-by: Graham <gpe@openrs2.dev>
parent
177326221f
commit
465078256f
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.deob |
||||
|
||||
import dev.openrs2.asm.MemberRef |
||||
import dev.openrs2.common.collect.DisjointSet |
||||
import dev.openrs2.util.collect.DisjointSet |
||||
|
||||
data class ArgRef(val method: DisjointSet.Partition<MemberRef>, val arg: Int) |
||||
|
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.deob.analysis |
||||
|
||||
import dev.openrs2.asm.MemberRef |
||||
import dev.openrs2.common.collect.DisjointSet |
||||
import dev.openrs2.util.collect.DisjointSet |
||||
|
||||
data class SourcedIntValue(val source: DisjointSet.Partition<MemberRef>, val intValue: IntValue) |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common |
||||
package dev.openrs2.util |
||||
|
||||
fun CharSequence.indefiniteArticle(): String { |
||||
require(isNotEmpty()) |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common.collect |
||||
package dev.openrs2.util.collect |
||||
|
||||
interface DisjointSet<T> : Iterable<DisjointSet.Partition<T>> { |
||||
interface Partition<T> : Iterable<T> |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common.collect |
||||
package dev.openrs2.util.collect |
||||
|
||||
import java.util.ArrayDeque |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common.collect |
||||
package dev.openrs2.util.collect |
||||
|
||||
inline fun <T> MutableIterable<T>.removeFirst(predicate: (T) -> Boolean): Boolean { |
||||
val iterator = iterator() |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common.io |
||||
package dev.openrs2.util.io |
||||
|
||||
import java.io.OutputStream |
||||
import java.nio.file.Files |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common.io |
||||
package dev.openrs2.util.io |
||||
|
||||
import java.io.OutputStream |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.common |
||||
package dev.openrs2.util |
||||
|
||||
import kotlin.test.Test |
||||
import kotlin.test.assertEquals |
Loading…
Reference in new issue