diff options
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/moe/nea/firm/Codec.kt | 5 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/firm/EnumRenderer.kt | 7 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/firm/ManagedConfig.kt | 10 |
3 files changed, 9 insertions, 13 deletions
diff --git a/src/main/kotlin/moe/nea/firm/Codec.kt b/src/main/kotlin/moe/nea/firm/Codec.kt deleted file mode 100644 index 1c19de4..0000000 --- a/src/main/kotlin/moe/nea/firm/Codec.kt +++ /dev/null @@ -1,5 +0,0 @@ -package moe.nea.firm - -interface Codec<T> { - -} diff --git a/src/main/kotlin/moe/nea/firm/EnumRenderer.kt b/src/main/kotlin/moe/nea/firm/EnumRenderer.kt deleted file mode 100644 index 03f5f95..0000000 --- a/src/main/kotlin/moe/nea/firm/EnumRenderer.kt +++ /dev/null @@ -1,7 +0,0 @@ -package moe.nea.firm - -interface EnumRenderer<E: Any> { - companion object { - fun <E: Enum<E>> default() = object: EnumRenderer<E> {} - } -}
\ No newline at end of file diff --git a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt index 741d6aa..0bf0e84 100644 --- a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt @@ -1,8 +1,16 @@ package moe.nea.firm import ext.StringIdentifiable -import kotlin.enums.enumEntries +interface EnumRenderer<E: Any> { + companion object { + fun <E: Enum<E>> default() = object: EnumRenderer<E> {} + } +} + +interface Codec<T> { + +} abstract class ManagedConfig { protected fun <E : Any> choice( |