Interface ValueMatcher<T>

Type Parameters:
T - the object type to compare
All Known Subinterfaces:
LocationAwareValueMatcher<T>
All Known Implementing Classes:
ArrayValueMatcher, RegularExpressionValueMatcher

public interface ValueMatcher<T>
Represents a value matcher that can compare two objects for equality.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equal(T o1, T o2)
    Compares the two provided objects whether they are equal.
  • Method Details

    • equal

      boolean equal(T o1, T o2)
      Compares the two provided objects whether they are equal.
      Parameters:
      o1 - the first object to check
      o2 - the object to check the first against
      Returns:
      true if the objects are equal, false otherwise