Simon Hardt
01/12/2024, 2:10 PMtoString()
representation?
testing a scratch file, all variants produce different hash codes and none matches the one from toString
class Foo
val foo = Foo()
foo.toString() Foo@12f40c25
foo.hashCode() 317983781
foo::javaClass.hashCode() 405143212
foo::class.java.hashCode() 428746855
Alexander Zhirkevich
01/12/2024, 2:16 PMfoo.hashCode().toString(16)
Simon Hardt
01/12/2024, 2:18 PM