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 ToStringStyleAnnotationUtils.TO_STRING_STYLEA 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 TypeClassDescriptionclassWorks withToStringBuilderto create a "deep"toString.classWorks withToStringBuilderto create a "deep"toString.classWorks withToStringBuilderto create atoString.private static final classDefaultToStringStyle.private static final classToStringStylethat outputs with JSON format.private static final classToStringStylethat outputs on multiple lines.private static final classToStringStylethat does not print out the classname and identity hash code but prints content start and field names.private static final classToStringStylethat does not print out the field names.private static final classToStringStylethat prints out the short class name and no identity hashcode.private static final classToStringStylethat 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 ToStringStyleToStringStyle.DEFAULT_STYLEThe default toString style.private static ToStringStyleToStringBuilder.defaultStyleThe default style of output to use, not null.static final ToStringStyleToStringStyle.JSON_STYLEThe JSON toString style.static final ToStringStyleToStringStyle.MULTI_LINE_STYLEThe multi line toString style.static final ToStringStyleToStringStyle.NO_CLASS_NAME_STYLEThe no class name toString style.static final ToStringStyleToStringStyle.NO_FIELD_NAMES_STYLEThe no field names toString style.static final ToStringStyleToStringStyle.SHORT_PREFIX_STYLEThe short prefix toString style.static final ToStringStyleToStringStyle.SIMPLE_STYLEThe simple toString style.private final ToStringStyleDiffBuilder.styleprivate final ToStringStyleDiffResult.styleprivate final ToStringStyleToStringBuilder.styleThe style of output to use, not null.Methods in org.apache.commons.lang3.builder that return ToStringStyleModifier and TypeMethodDescriptionstatic ToStringStyleToStringBuilder.getDefaultStyle()Gets the defaultToStringStyleto use.ToStringBuilder.getStyle()Gets theToStringStylebeing 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 StringToStringBuilder.reflectionToString(Object object, ToStringStyle style) UsesReflectionToStringBuilderto generate atoStringfor the specified object.static StringToStringBuilder.reflectionToString(Object object, ToStringStyle style, boolean outputTransients) UsesReflectionToStringBuilderto generate atoStringfor the specified object.static <T> StringToStringBuilder.reflectionToString(T object, ToStringStyle style, boolean outputTransients, Class<? super T> reflectUpToClass) UsesReflectionToStringBuilderto generate atoStringfor the specified object.static voidToStringBuilder.setDefaultStyle(ToStringStyle style) Sets the defaultToStringStyleto use.DiffResult.toString(ToStringStyle style) Builds aStringdescription of the differences contained within thisDiffResult, using the suppliedToStringStyle.static StringReflectionToStringBuilder.toString(Object object, ToStringStyle style) Builds atoStringvalue through reflection.static StringReflectionToStringBuilder.toString(Object object, ToStringStyle style, boolean outputTransients) Builds atoStringvalue through reflection.static StringReflectionToStringBuilder.toString(Object object, ToStringStyle style, boolean outputTransients, boolean outputStatics) Builds atoStringvalue through reflection.static <T> StringReflectionToStringBuilder.toString(T object, ToStringStyle style, boolean outputTransients, boolean outputStatics, boolean excludeNullValues, Class<? super T> reflectUpToClass) Builds atoStringvalue through reflection.static <T> StringReflectionToStringBuilder.toString(T object, ToStringStyle style, boolean outputTransients, boolean outputStatics, Class<? super T> reflectUpToClass) Builds atoStringvalue 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 aDiffResultcontaining 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.