Uses of Class
org.apache.commons.lang3.builder.ToStringStyle
Packages that use ToStringStyle
Package
Description
Provides highly reusable static utility methods, chiefly concerned with adding value to the
java.lang
classes.Assists in creating consistent
equals(Object)
, toString()
, hashCode()
, and compareTo(Object)
methods.-
Uses of ToStringStyle in org.apache.commons.lang3
Fields in org.apache.commons.lang3 declared as ToStringStyleModifier and TypeFieldDescriptionprivate static final ToStringStyle
AnnotationUtils.TO_STRING_STYLE
A style that prints annotations as recommended. -
Uses of ToStringStyle in org.apache.commons.lang3.builder
Subclasses of ToStringStyle in org.apache.commons.lang3.builderModifier and TypeClassDescriptionclass
Works withToStringBuilder
to create a "deep"toString
.class
Works withToStringBuilder
to create a "deep"toString
.class
Works withToStringBuilder
to create atoString
.private static final class
DefaultToStringStyle
.private static final class
ToStringStyle
that outputs with JSON format.private static final class
ToStringStyle
that outputs on multiple lines.private static final class
ToStringStyle
that does not print out the classname and identity hash code but prints content start and field names.private static final class
ToStringStyle
that does not print out the field names.private static final class
ToStringStyle
that prints out the short class name and no identity hashcode.private static final class
ToStringStyle
that does not print out the classname, identity hashcode, content start or field name.Fields in org.apache.commons.lang3.builder declared as ToStringStyleModifier and TypeFieldDescriptionstatic final ToStringStyle
ToStringStyle.DEFAULT_STYLE
The default toString style.private static ToStringStyle
ToStringBuilder.defaultStyle
The default style of output to use, not null.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.private final ToStringStyle
DiffBuilder.style
private final ToStringStyle
DiffResult.style
private final ToStringStyle
ToStringBuilder.style
The style of output to use, not null.Methods in org.apache.commons.lang3.builder that return ToStringStyleModifier 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.Methods in org.apache.commons.lang3.builder with parameters of type ToStringStyleModifier 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.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.Constructors in org.apache.commons.lang3.builder with parameters of type ToStringStyleModifierConstructorDescriptionDiffBuilder
(T lhs, T rhs, ToStringStyle style) Constructs a builder for the specified objects with the specified style.DiffBuilder
(T lhs, T rhs, ToStringStyle style, boolean testTriviallyEqual) Constructs a builder for the specified objects with the specified style.(package private)
DiffResult
(T lhs, T rhs, List<Diff<?>> diffList, ToStringStyle style) Creates aDiffResult
containing the differences between two objects.ReflectionDiffBuilder
(T lhs, T rhs, ToStringStyle style) Constructs a builder for the specified objects with the specified style.ReflectionToStringBuilder
(Object object, ToStringStyle style) Constructor.ReflectionToStringBuilder
(Object object, ToStringStyle style, StringBuffer buffer) Constructor.ReflectionToStringBuilder
(T object, ToStringStyle style, StringBuffer buffer, Class<? super T> reflectUpToClass, boolean outputTransients, boolean outputStatics) Constructor.ReflectionToStringBuilder
(T object, ToStringStyle style, StringBuffer buffer, Class<? super T> reflectUpToClass, boolean outputTransients, boolean outputStatics, boolean excludeNullValues) Constructor.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.