Annotation Type 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 Elements
    Modifier and Type
    Required Element
    Description
    int
    The value for the sort order where fields with higher values are checked for equality first.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default sort weight.
  • Field Details

  • Element Details

    • value

      int value
      The 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.