stringifyOrElseDefault

public String stringifyOrElseDefault(Object object, Supplier<String> defaultStringSupplier)(source)

Creates a string representation of the given object or the default string supplied by the given suuplier, if no string representation can be created.

Return

the string representation of the given object

Parameters

object

the object to create a string representation for

defaultStringSupplier

the supplier to use if no string representation can be created


public String stringifyOrElseDefault(Object object, String defaultString)(source)

Creates a string representation of the given object or use the given default string, if no string representation can be created.

Return

the string representation of the given object

Parameters

object

the object to create a string representation for

defaultString

the default string to use if no string representation can be created