ToStringBuilder

class ToStringBuilder(val className: String)

Support class for Objects.toStringBuilder.

class Object
trait Matchable
class Any

Value members

Concrete methods

def add(name: String, value: Any): ToStringBuilder

Adds a name/value pair to the formatted output in name=value format. If value is null, the string "null" is used, unless [[Objects# omitNull ( )]] is called, in which case this name/value pair will not be added.

Adds a name/value pair to the formatted output in name=value format. If value is null, the string "null" is used, unless [[Objects# omitNull ( )]] is called, in which case this name/value pair will not be added.

When called, the formatted output returned by [[# toString ( )]] will ignore null values.

When called, the formatted output returned by [[# toString ( )]] will ignore null values.

override def toString(): String

Returns a string in the format specified by [[Objects# toStringBuilder ( Object )]].

Returns a string in the format specified by [[Objects# toStringBuilder ( Object )]].

Definition Classes
Any

Concrete fields

val className: String