Czar
09/18/2017, 9:01 AMstatic final
in Kotlin companion object{ val /* or const val */ }
should be used. At least I have seen a lot of people doing that. But if your class will only have one instance (e.g. @Singleton
or @Component
appropriately scoped), then this is superfluous and you can (and probably should) use simple class-level `val`s without wrapping them in an object.
Am I missing something?