org.apache.commons.lang3.builder¶
Provides classes to create 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 org.apache.commons.lang3.builder.HashCodeBuilder will save your day. It, and its buddies (org.apache.commons.lang3.builder.EqualsBuilder, org.apache.commons.lang3.builder.CompareToBuilder, org.apache.commons.lang3.builder.ToStringBuilder), take care of the nasty bits while you focus on the important bits, like which fields will go into making up the hash code.
- See also:
- Since:
1.0
Interfaces¶
Classes¶
Abstracts reflection access for reflection-based classes in this package. |
|
Builds an instance of a subclass of |
|
Abstracts supplying an instance of |
|
Assists in implementing |
|
Builds instances of CompareToBuilder. |
|
A |
|
Assists in implementing |
|
Constructs a new instance. |
|
A |
|
Assists in implementing |
|
Builds instances of CompareToBuilder. |
|
Assists in implementing |
|
Builds instances of CompareToBuilder. |
|
Works with |
|
Works with |
|
Builder for |
|
Assists in implementing |
|
Constructs a new instance. |
|
Assists in implementing |
|
Works with |
|
Assists in implementing |
|
Builds instances of CompareToBuilder. |
|
Controls |
Annotation types¶
Excludes a field from being used by the |
|
Excludes a field from being used by the various |
|
Exclude a field from being used by the various |
|
Excludes a field from being used by the |
|
Use this annotation on the fields to get the summary instead of the detailed information when using |