
ru.hnau.jutils.getter.mutable.MutableGetter.kt Maven / Gradle / Ivy
package ru.hnau.jutils.getter.mutable
import ru.hnau.jutils.TimeValue
open class MutableGetter(
valueLifetime: TimeValue? = null,
getter: () -> V
) : MutableParamGetter(
valueLifetime,
{ getter.invoke() }
) {
fun get() = get(Unit)
fun invalidate() = synchronized(this) {
clear()
get()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy