Package net.bytebuddy.build
Annotation Interface HashCodeAndEqualsPlugin.Sorted
- Enclosing class:
HashCodeAndEqualsPlugin
@Documented
@Target(FIELD)
@Retention(RUNTIME)
public static @interface HashCodeAndEqualsPlugin.Sorted
Determines the sort order of fields for the equality check when implementing the
Object.equals(Object)
method. Any field
that is not annotated is considered with a value of DEFAULT
where fields with a higher value are checked for equality
first. This sort order is applied first after which the type order is considered if HashCodeAndEqualsPlugin.Enhance.simpleComparisonsFirst()
is considered
as additional sort criteria.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionint
The value for the sort order where fields with higher values are checked for equality first. -
Field Summary
Fields
-
Field Details
-
DEFAULT
static final int DEFAULTThe default sort weight.- See Also:
-
-
Element Details
-
value
int valueThe value for the sort order where fields with higher values are checked for equality first.- Returns:
- The value for the sort order where fields with higher values are checked for equality first.
-