Annotation Interface DefaultEqualityComparator


Annotation applied to a type to declare the default EqualityComparator used by Observable and Memoize members when they do not explicitly specify an equalityComparator.

The annotation processor only considers the exact declared type of the observable or memoized value. It does not walk supertypes, interfaces, array component types, or type-use annotations.

An explicit equalityComparator configured on Observable or Memoize always overrides the type-level default.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Return the default equality comparator associated with the annotated type.
  • Element Details

    • value

      @Nonnull Class<? extends EqualityComparator> value
      Return the default equality comparator associated with the annotated type.
      Returns:
      the comparator type.