Uses of Class
org.apache.commons.lang3.builder.ToStringStyle
-
Packages that use ToStringStyle Package Description org.apache.commons.lang3 Provides highly reusable static utility methods, chiefly concerned with adding value to thejava.lang
classes.org.apache.commons.lang3.builder Assists in creating consistentequals(Object)
,toString()
,hashCode()
, andcompareTo(Object)
methods. -
-
Uses of ToStringStyle in org.apache.commons.lang3
Fields in org.apache.commons.lang3 declared as ToStringStyle Modifier and Type Field Description private static 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.builder Modifier and Type Class Description class
MultilineRecursiveToStringStyle
Works withToStringBuilder
to create a "deep"toString
.class
RecursiveToStringStyle
Works withToStringBuilder
to create a "deep"toString
.class
StandardToStringStyle
Works withToStringBuilder
to create atoString
.private static class
ToStringStyle.DefaultToStringStyle
DefaultToStringStyle
.private static class
ToStringStyle.JsonToStringStyle
ToStringStyle
that outputs with JSON format.private static class
ToStringStyle.MultiLineToStringStyle
ToStringStyle
that outputs on multiple lines.private static class
ToStringStyle.NoClassNameToStringStyle
ToStringStyle
that does not print out the classname and identity hash code but prints content start and field names.private static class
ToStringStyle.NoFieldNameToStringStyle
ToStringStyle
that does not print out the field names.private static class
ToStringStyle.ShortPrefixToStringStyle
ToStringStyle
that prints out the short class name and no identity hashcode.private static class
ToStringStyle.SimpleToStringStyle
ToStringStyle
that does not print out the classname, identity hashcode, content start or field name.Fields in org.apache.commons.lang3.builder declared as ToStringStyle Modifier and Type Field Description static ToStringStyle
ToStringStyle. DEFAULT_STYLE
The default toString style.private static ToStringStyle
ToStringBuilder. defaultStyle
The default style of output to use, not null.static ToStringStyle
ToStringStyle. JSON_STYLE
The JSON toString style.static ToStringStyle
ToStringStyle. MULTI_LINE_STYLE
The multi line toString style.static ToStringStyle
ToStringStyle. NO_CLASS_NAME_STYLE
The no class name toString style.static ToStringStyle
ToStringStyle. NO_FIELD_NAMES_STYLE
The no field names toString style.static ToStringStyle
ToStringStyle. SHORT_PREFIX_STYLE
The short prefix toString style.static ToStringStyle
ToStringStyle. SIMPLE_STYLE
The simple toString style.private ToStringStyle
DiffBuilder. style
private ToStringStyle
DiffResult. style
private ToStringStyle
ToStringBuilder. style
The style of output to use, not null.Methods in org.apache.commons.lang3.builder that return ToStringStyle Modifier and Type Method Description static ToStringStyle
ToStringBuilder. getDefaultStyle()
Gets the defaultToStringStyle
to use.ToStringStyle
ToStringBuilder. getStyle()
Gets theToStringStyle
being used.ToStringStyle
DiffResult. getToStringStyle()
Returns the style used by theDiffResult.toString()
method.Methods in org.apache.commons.lang3.builder with parameters of type ToStringStyle Modifier and Type Method Description static java.lang.String
ToStringBuilder. reflectionToString(java.lang.Object object, ToStringStyle style)
UsesReflectionToStringBuilder
to generate atoString
for the specified object.static java.lang.String
ToStringBuilder. reflectionToString(java.lang.Object object, ToStringStyle style, boolean outputTransients)
UsesReflectionToStringBuilder
to generate atoString
for the specified object.static <T> java.lang.String
ToStringBuilder. reflectionToString(T object, ToStringStyle style, boolean outputTransients, java.lang.Class<? super T> reflectUpToClass)
UsesReflectionToStringBuilder
to generate atoString
for the specified object.static void
ToStringBuilder. setDefaultStyle(ToStringStyle style)
Sets the defaultToStringStyle
to use.java.lang.String
DiffResult. toString(ToStringStyle style)
Builds aString
description of the differences contained within thisDiffResult
, using the suppliedToStringStyle
.static java.lang.String
ReflectionToStringBuilder. toString(java.lang.Object object, ToStringStyle style)
Builds atoString
value through reflection.static java.lang.String
ReflectionToStringBuilder. toString(java.lang.Object object, ToStringStyle style, boolean outputTransients)
Builds atoString
value through reflection.static java.lang.String
ReflectionToStringBuilder. toString(java.lang.Object object, ToStringStyle style, boolean outputTransients, boolean outputStatics)
Builds atoString
value through reflection.static <T> java.lang.String
ReflectionToStringBuilder. toString(T object, ToStringStyle style, boolean outputTransients, boolean outputStatics, boolean excludeNullValues, java.lang.Class<? super T> reflectUpToClass)
Builds atoString
value through reflection.static <T> java.lang.String
ReflectionToStringBuilder. toString(T object, ToStringStyle style, boolean outputTransients, boolean outputStatics, java.lang.Class<? super T> reflectUpToClass)
Builds atoString
value through reflection.Constructors in org.apache.commons.lang3.builder with parameters of type ToStringStyle Constructor Description DiffBuilder(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.DiffResult(T lhs, T rhs, java.util.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(java.lang.Object object, ToStringStyle style)
Constructor.ReflectionToStringBuilder(java.lang.Object object, ToStringStyle style, java.lang.StringBuffer buffer)
Constructor.ReflectionToStringBuilder(T object, ToStringStyle style, java.lang.StringBuffer buffer, java.lang.Class<? super T> reflectUpToClass, boolean outputTransients, boolean outputStatics)
Constructor.ReflectionToStringBuilder(T object, ToStringStyle style, java.lang.StringBuffer buffer, java.lang.Class<? super T> reflectUpToClass, boolean outputTransients, boolean outputStatics, boolean excludeNullValues)
Constructor.ToStringBuilder(java.lang.Object object, ToStringStyle style)
Constructs a builder for the specified object using the defined output style.ToStringBuilder(java.lang.Object object, ToStringStyle style, java.lang.StringBuffer buffer)
Constructs a builder for the specified object.
-