Annotation Interface ObjectDiffEqualsOnlyType


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface ObjectDiffEqualsOnlyType
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of a method of the annotated type.
  • Element Details

    • valueProviderMethod

      String valueProviderMethod
      The name of a method of the annotated type. The value returned by this method will be used for the equals check instead of the annotated object itself. This allows to provide alternative equality checks (e.g. comparing a List type by size, by calling size().) The method should have no parameters.
      Returns:
      The name of a method providing a different object for the equals check.
      Default:
      ""