class SingletonReference<out T> : Serializable
SingletonReference(throwAwayIf: (it: T) -> Boolean = { false }, initializer: () -> T) |
val value: T |
fun acquire(): Unit |
|
fun destroy(): <ERROR CLASS> fun destroy(block: (it: T) -> Unit): <ERROR CLASS> |
|
fun exists(): Boolean |
|
fun forceDestroy(): <ERROR CLASS> |
|
fun getIfExists(): T? |
|
fun isInitialized(): Boolean |
|
fun toString(): String |
infix fun <A> A.andRecycle(b: <ERROR CLASS>): <ERROR CLASS> infix fun <A> A.andRecycle(b: Recyclable): <ERROR CLASS> |
|
fun <T> T.loopAsLongNotNull(block: (it: T) -> T?): T |