SingletonReference

object SingletonReference : RefMaker

A reference that acts as a Singleton: calls a creator function the first time, and then always return the same instance.

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
make
Link copied to clipboard
common
open override fun <T : Any> make(creator: () -> T): Reference<T>
A Function that creates a reference.
toString
Link copied to clipboard
common
open fun toString(): String