Interface Equal


  • public interface Equal
    A control class to build an equality comparison.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T,​R>
      Equal
      append​(T left, R right)
      Compare left with right for equality.
      boolean isEqual()
      Indicates if the result of the entire equality pipeline was the same.
      boolean isNotEqual()
      Indicates if the result of at least one equality in the pipeline was not the same.
    • Method Detail

      • append

        <T,​R> Equal append​(T left,
                                 R right)
        Compare left with right for equality. Returns the result of the comparison and the previous comparison pipeline.
        Type Parameters:
        T - the type of the left element
        R - the type of the right element
        Parameters:
        left - the left element for comparison
        right - the right element for comparison
        Returns:
        the Equal instance representing the equality of the pipeline
      • isEqual

        boolean isEqual()
        Indicates if the result of the entire equality pipeline was the same.
        Returns:
        true if all append(Object, Object) were equal.
      • isNotEqual

        boolean isNotEqual()
        Indicates if the result of at least one equality in the pipeline was not the same.
        Returns:
        true if at least one append(Object, Object) was not equal.