tipsy09/14/2018, 7:40 PM
and when to use which?
Double.javaClass // DoubleCompanionObject ? Double::class.java // java Double ? Double // kotlin Double ?
Shawn09/14/2018, 8:17 PM
on its own (not used as a type annotation) will refer to Double’s companion object (of which I don’t think there is one)
will yield a
should be used when you need the Java
of an instantiated object
should be used when you need a reference to the
by way of knowing the name of the class
tipsy09/14/2018, 8:55 PM