tornadofx / tornadofx / ConfigProperties

ConfigProperties

class ConfigProperties : Properties, Closeable

Constructors

<init> ConfigProperties(configurable: Configurable)

Properties

configurable val configurable: Configurable

Functions

boolean fun boolean(key: String): Boolean?
fun boolean(key: String, defaultValue: Boolean): Boolean
close fun close(): Unit
double fun double(key: String): Double?
fun double(key: String, defaultValue: Double): Double
int fun int(key: String): <ERROR CLASS>
fun int(key: String, defaultValue: Int): Int
jsonArray fun jsonArray(key: String): <ERROR CLASS>
jsonModel fun <M : JsonModel> jsonModel(key: String): <ERROR CLASS>
jsonModels fun <M : JsonModel> jsonModels(key: String): <ERROR CLASS>
jsonObject fun jsonObject(key: String): <ERROR CLASS>
save fun save(): Unit
set fun set(pair: Pair<String, Any?>): Unit
string fun string(key: String): String?
fun string(key: String, defaultValue: String): String

Extension Properties

queryString val Map<*, *>.queryString: String

Extension Functions

countValues fun <K> Map<K, Collection<*>>.countValues(key: K): Int
getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
mapEach fun <K, V, R> Map<K, V>.mapEach(action: Entry<K, V>.() -> R): <ERROR CLASS>

map with Map.Entree as receiver.

mapEachTo fun <K, V, R, C : MutableCollection<in R>> Map<K, V>.mapEachTo(destination: C, action: Entry<K, V>.() -> R): <ERROR CLASS>

mapTo with Map.Entree as receiver.

observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>
observable fun <K, V> Map<K, V>.observable(): ObservableMap<K, V>
toProperty fun <S, V, X : V> MutableMap<S, V>.toProperty(key: S, propertyGenerator: (X?) -> Property<X>): Property<X>

Convert the given key in this map to a Property using the given propertyGenerator function.

withEach fun <K, V> Map<K, V>.withEach(action: Entry<K, V>.() -> Unit): <ERROR CLASS>

forEach with Map.Entree as receiver.