Annotation Type HashCodeAndEqualsPlugin.Sorted


  • @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.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static int DEFAULT
      The default sort weight.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int value
      The value for the sort order where fields with higher values are checked for equality first.
    • Field Detail

      • DEFAULT

        static final int DEFAULT
        The default sort weight.
    • Element Detail

      • 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.