louiscad
12/14/2017, 8:19 AMtoString()
(for debugging purposes) for a java class that doesn't override the one from Object
?jmfayard
12/14/2017, 8:36 AMinterface Debuggable {
val debugMsg: String
fun <T : Debuggable> debug(name: String): T {
println("DEBUG: ${name} = ${debugMsg}")
return this
}
}
louiscad
12/14/2017, 8:45 AMprint()
extension function that returns what a proper toString()
should return for now.kingsley
12/14/2017, 8:38 PMcedric
12/15/2017, 2:18 AM