Skip to content

Instantly share code, notes, and snippets.

@GeePawHill
Created October 4, 2019 14:44
Show Gist options
  • Select an option

  • Save GeePawHill/4767ab49da17213289f06e74a4ccba82 to your computer and use it in GitHub Desktop.

Select an option

Save GeePawHill/4767ab49da17213289f06e74a4ccba82 to your computer and use it in GitHub Desktop.
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