rrader
12/13/2017, 12:41 PMlupajz
12/13/2017, 12:56 PMstatic
. The thing with companion object is that it supports inheritance and so on, which makes it more powerful.rrader
12/13/2017, 1:02 PMrrader
12/13/2017, 1:03 PMYou don’t need to have anything in class and that way it’ll becomebut I want to have same namespace as classstatic
rrader
12/13/2017, 1:05 PMdragas
12/13/2017, 1:22 PM@JvmStatic
if you want them to be truly static. Otherwise you will need to access them via Clazz.Companion.foo()
instead of Clazz.foo()
when calling from java.dragas
12/13/2017, 1:23 PMlupajz
12/13/2017, 1:29 PMrrader
12/13/2017, 1:33 PM@JvmStatic
because we do not have any benefits from companion objectrrader
12/13/2017, 1:35 PMrrader
12/13/2017, 1:36 PMlupajz
12/13/2017, 1:38 PMconst val ARRAY_MAX_SIZE = xx
probably have it private
. Autocomplete is mentioned in next comments on githubrrader
12/13/2017, 1:48 PMlupajz
12/13/2017, 2:06 PMrrader
12/13/2017, 2:16 PMlupajz
12/13/2017, 2:32 PM