Created
October 4, 2019 14:44
-
-
Save GeePawHill/4767ab49da17213289f06e74a4ccba82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.geepawhill.tsd.core | |
| interface TsdWriter { | |
| class IllegalKeyException(key: String, message: String) : RuntimeException("'$key' is not a legal tsd key, (${message}).") | |
| class UnknownKeyException(key: String) : RuntimeException("`$key` not found in TSD") | |
| operator fun set(key: String, value: String) | |
| operator fun <T> set(key: String, value: T) | |
| operator fun set(key: String, value: Tsd) | |
| operator fun <T> set(key: String, collection: Collection<T>) | |
| operator fun set(key: String, op: () -> Unit) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment