Package org.apache.commons.lang.builder
package org.apache.commons.lang.builder
Assists in creating consistent
equals(Object), toString(),
hashCode(), and compareTo(Object) methods.- Since:
- 1.0
These classes are not thread-safe.
- See Also:
-
ClassesClassDescriptionAssists in implementing
Comparable.compareTo(Object)methods.Assists in implementingObject.equals(Object)methods.Assists in implementingObject.hashCode()methods.Wrap an identity key (System.identityHashCode()) so that an object can only be equal() to itself.Assists in implementingObject.toString()methods using reflection.Works withToStringBuilderto create atoString.Assists in implementingObject.toString()methods.ControlsStringformatting forToStringBuilder.DefaultToStringStyle.ToStringStylethat outputs on multiple lines.ToStringStylethat does not print out the field names.ToStringStylethat prints out the short class name and no identity hashcode.ToStringStylethat does not print out the classname, identity hashcode, content start or field name.