Class IsEqualTo<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      IsEqualTo()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> IsEqualTo<T> isEqualTo()  
      java.lang.Boolean perform​(T left, T right)
      Has to be implemented to perform the actual operation.
      boolean test​(T left, T right)
      Evaluates the predicate (condition) on the given arguments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IsEqualTo

        public IsEqualTo()
    • Method Detail

      • perform

        public java.lang.Boolean perform​(T left,
                                         T right)
        Description copied from interface: BinaryFunction
        Has to be implemented to perform the actual operation. The order of operands might be important or not, depending, if the operation is commutative or not.
        Specified by:
        perform in interface BinaryFunction<T,​java.lang.Boolean>
        Specified by:
        perform in interface BinaryPredicate<T>
        Parameters:
        left - the left operand to be used in the operation
        right - the right operand to be used in the operation
        Returns:
        the result of the operation
      • test

        public boolean test​(T left,
                            T right)
        Description copied from interface: BinaryPredicate
        Evaluates the predicate (condition) on the given arguments.
        Specified by:
        test in interface BinaryPredicate<T>
        Parameters:
        left - the left operator of the condition
        right - the right operator of the condition
        Returns:
        true if the predicate is fulfilled, false otherwise.
      • isEqualTo

        public static final <T> IsEqualTo<T> isEqualTo()