toString

open fun toString(source: Any, defaultValue: String): String

Converts the given object into a String object.

Return

the converted string.

Parameters

source

the object to be converted.

defaultValue

the value that should be returned if the object cannot be converted.


open fun toString(source: Any): String

Converts the given object into a String object.

Return

the converted string.

Parameters

source

the object to be converted.