... in Initialization-on-demand holder idiom. But that's Java. In Kotlin, simply use an object (and optionally a lazy delegate): object Singletons { val ...
確定! 回上一頁