Uses of Class
org.apache.commons.lang3.builder.ToStringStyle
Package
Description
Assists in creating consistent
equals(Object)
, toString()
, hashCode()
, and compareTo(Object)
methods.-
Uses of ToStringStyle in org.apache.commons.lang3.builder
Modifier and TypeClassDescriptionclass
Works withToStringBuilder
to create a "deep"toString
.class
Works withToStringBuilder
to create a "deep"toString
.class
Works withToStringBuilder
to create atoString
.Modifier and TypeFieldDescriptionstatic final ToStringStyle
ToStringStyle.DEFAULT_STYLE
The default toString style.static final ToStringStyle
ToStringStyle.JSON_STYLE
The JSON toString style.static final ToStringStyle
ToStringStyle.MULTI_LINE_STYLE
The multi line toString style.static final ToStringStyle
ToStringStyle.NO_CLASS_NAME_STYLE
The no class name toString style.static final ToStringStyle
ToStringStyle.NO_FIELD_NAMES_STYLE
The no field names toString style.static final ToStringStyle
ToStringStyle.SHORT_PREFIX_STYLE
The short prefix toString style.static final ToStringStyle
ToStringStyle.SIMPLE_STYLE
The simple toString style.Modifier and TypeMethodDescriptionstatic ToStringStyle
ToStringBuilder.getDefaultStyle()
Gets the defaultToStringStyle
to use.ToStringBuilder.getStyle()
Gets theToStringStyle
being used.DiffResult.getToStringStyle()
Returns the style used by theDiffResult.toString()
method.Modifier and TypeMethodDescriptionstatic String
ToStringBuilder.reflectionToString
(Object object, ToStringStyle style) UsesReflectionToStringBuilder
to generate atoString
for the specified object.static String
ToStringBuilder.reflectionToString
(Object object, ToStringStyle style, boolean outputTransients) UsesReflectionToStringBuilder
to generate atoString
for the specified object.static <T> String
ToStringBuilder.reflectionToString
(T object, ToStringStyle style, boolean outputTransients, Class<? super T> reflectUpToClass) UsesReflectionToStringBuilder
to generate atoString
for the specified object.static void
ToStringBuilder.setDefaultStyle
(ToStringStyle style) Sets the defaultToStringStyle
to use.DiffBuilder.Builder.setStyle
(ToStringStyle style) Sets the style will to use when outputting the objects,null
uses the default.DiffResult.toString
(ToStringStyle style) Builds aString
description of the differences contained within thisDiffResult
, using the suppliedToStringStyle
.static String
ReflectionToStringBuilder.toString
(Object object, ToStringStyle style) Builds atoString
value through reflection.static String
ReflectionToStringBuilder.toString
(Object object, ToStringStyle style, boolean outputTransients) Builds atoString
value through reflection.static String
ReflectionToStringBuilder.toString
(Object object, ToStringStyle style, boolean outputTransients, boolean outputStatics) Builds atoString
value through reflection.static <T> String
ReflectionToStringBuilder.toString
(T object, ToStringStyle style, boolean outputTransients, boolean outputStatics, boolean excludeNullValues, Class<? super T> reflectUpToClass) Builds atoString
value through reflection.static <T> String
ReflectionToStringBuilder.toString
(T object, ToStringStyle style, boolean outputTransients, boolean outputStatics, Class<? super T> reflectUpToClass) Builds atoString
value through reflection.ModifierConstructorDescriptionDiffBuilder
(T left, T right, ToStringStyle style) Deprecated.DiffBuilder
(T left, T right, ToStringStyle style, boolean testObjectsEquals) Deprecated.UseDiffBuilder.Builder
.ReflectionDiffBuilder
(T left, T right, ToStringStyle style) Deprecated.ReflectionToStringBuilder
(Object object, ToStringStyle style) Constructs a new instance.ReflectionToStringBuilder
(Object object, ToStringStyle style, StringBuffer buffer) Constructs a new instance.ReflectionToStringBuilder
(T object, ToStringStyle style, StringBuffer buffer, Class<? super T> reflectUpToClass, boolean outputTransients, boolean outputStatics) Constructs a new instance.ReflectionToStringBuilder
(T object, ToStringStyle style, StringBuffer buffer, Class<? super T> reflectUpToClass, boolean outputTransients, boolean outputStatics, boolean excludeNullValues) Constructs a new instance.ToStringBuilder
(Object object, ToStringStyle style) Constructs a builder for the specified object using the defined output style.ToStringBuilder
(Object object, ToStringStyle style, StringBuffer buffer) Constructs a builder for the specified object.
DiffBuilder.Builder
.