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:
Object.equals(Object)
,Object.toString()
,Object.hashCode()
,Comparable.compareTo(Object)
-
Class Summary Class Description CompareToBuilder Assists in implementingComparable.compareTo(Object)
methods.EqualsBuilder Assists in implementingObject.equals(Object)
methods.HashCodeBuilder Assists in implementingObject.hashCode()
methods.IDKey Wrap an identity key (System.identityHashCode()) so that an object can only be equal() to itself.ReflectionToStringBuilder Assists in implementingObject.toString()
methods using reflection.StandardToStringStyle Works withToStringBuilder
to create atoString
.ToStringBuilder Assists in implementingObject.toString()
methods.ToStringStyle ControlsString
formatting forToStringBuilder
.ToStringStyle.DefaultToStringStyle DefaultToStringStyle
.ToStringStyle.MultiLineToStringStyle ToStringStyle
that outputs on multiple lines.ToStringStyle.NoFieldNameToStringStyle ToStringStyle
that does not print out the field names.ToStringStyle.ShortPrefixToStringStyle ToStringStyle
that prints out the short class name and no identity hashcode.ToStringStyle.SimpleToStringStyle ToStringStyle
that does not print out the classname, identity hashcode, content start or field name.