Interface ValueComparable<T>

Type Parameters:
T - The type of value.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValueComparable<T>
Aspect providing means to compare one value to another one in terms of equal meaning. E.g. null may be considered equal to an empty String.
Since:
5.2.180803
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final AspectType<ValueComparable<?>>
    The aspect's technical type to be used for requesting it from an Aspectable.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    areEquivalent(T value1, T value2)
    Compares two values in terms of equal meaning
  • Field Details

  • Method Details

    • areEquivalent

      boolean areEquivalent(T value1, T value2)
      Compares two values in terms of equal meaning
      Parameters:
      value1 - the first value
      value2 - the second value
      Returns:
      true if both values are considered to be equal
      Since:
      5.2.180803