ToStringBuilder.Builder

public static class org.apache.commons.lang3.builder.ToStringBuilder.Builder extends AbstractReflection.AbstractBuilder<ToStringBuilder.Builder>[source]

Builds instances of CompareToBuilder.

Since:

3.21.0

Methods

ToStringBuilder

get()

ToStringBuilder.Builder

setBuffer(StringBuffer buffer)

Sets the StringBuffer to populate, may be null.

ToStringBuilder.Builder

setObject(Object object)

Sets the Object to build a toString for, not recommended to be null.

ToStringBuilder.Builder

setStyle(ToStringStyle style)

Sets the style of the toString to create, null uses the default style.

public ToStringBuilder get()[source]
public ToStringBuilder.Builder setBuffer(StringBuffer buffer)[source]

Sets the StringBuffer to populate, may be null.

Parameters:

buffer – The StringBuffer to populate, may be null

Returns:

this builder instance.

public ToStringBuilder.Builder setObject(Object object)[source]

Sets the Object to build a toString for, not recommended to be null.

Parameters:

object – The Object to build a toString for, not recommended to be null.

Returns:

this builder instance.

public ToStringBuilder.Builder setStyle(ToStringStyle style)[source]

Sets the style of the toString to create, null uses the default style.

Parameters:

style – The style of the toString to create, null uses the default style

Returns:

this builder instance.