On this page

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

get()

setBuffer(StringBuffer)

Sets the StringBuffer to populate, may be null.

setObject(Object)

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

setStyle(ToStringStyle)

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

@Override 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.