Package org.apache.commons.lang3.builder

Assists in creating consistent equals(Object), toString(), hashCode(), and compareTo(Object) methods. These classes are not thread-safe.

When you write a hashCode(), do you check Bloch's Effective Java? No? You just hack in a quick number? Well HashCodeBuilder will save your day. It, and its buddies (EqualsBuilder, CompareToBuilder, ToStringBuilder), take care of the nasty bits while you focus on the important bits, like which fields will go into making up the hashcode.

Since:
1.0
See Also:
Object.equals(Object), Object.toString(), Object.hashCode(), Comparable.compareTo(Object)