This code will always return a different configura...
# announcements
c
This code will always return a different configuration if the getter is invoked:
Copy code
interface IConfigActor<T> {
    val configurations : HashMap<String, T> get() = hashMapOf()
}
Is there a way to assign this field a value that won't change at each invocation? It can't be defined in the companion object (which doesn't know about the generic parameter
T
), nor can it be lazy nor can it be initialized (since we're in an interface)