ossama
07/04/2017, 1:08 PMagomez
07/04/2017, 1:11 PMevanchooly
07/04/2017, 1:26 PMelizarov
07/04/2017, 1:32 PMpoohbar
07/04/2017, 1:37 PM@JvmStatic
then?evanchooly
07/04/2017, 1:37 PMevanchooly
07/04/2017, 1:38 PMCompanion
nested class.evanchooly
07/04/2017, 1:38 PMpoohbar
07/04/2017, 1:40 PMevanchooly
07/04/2017, 1:41 PMelizarov
07/04/2017, 2:32 PMprivate
fields by default available only though accessor on the companion object. You cannot use @JvmStatic
with companion object property, but you can use @JvmField
, which makes the corresponding backing JVM fields public
, so that they can be accessed from Java.evanchooly
07/04/2017, 2:33 PM@JvmStatic
on the companion object itself to expose them all as static fields on the parentpoohbar
07/04/2017, 2:34 PM