@Documented @Target(value=FIELD) @Retention(value=RUNTIME) public static @interface HashCodeAndEqualsPlugin.Sorted
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.Modifier and Type | Fields and Description |
---|---|
static int |
DEFAULT
The default sort weight.
|
Modifier and Type | Required Element and Description |
---|---|
int |
value
The value for the sort order where fields with higher values are checked for equality first.
|
Copyright © 2014–2018. All rights reserved.