ToStringBuilder

org.beangle.commons.lang.Objects$.ToStringBuilder
class ToStringBuilder(val className: String)

Support class for Objects.toStringBuilder.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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.

Attributes

def omitNull(): ToStringBuilder.this.type

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

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

Attributes

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 )]].

Attributes

Definition Classes
Any

Concrete fields

val className: String