Class VerificationUtil


  • public class VerificationUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean acceptable​(java.lang.Number expected, java.lang.Number actual, double precision, double zeroThreshold)  
      static boolean acceptable​(java.lang.Object expected, java.lang.Object actual, double precision, double zeroThreshold)  
      static boolean isZero​(java.lang.Number value, double zeroThreshold)  
      • Methods inherited from class java.lang.Object

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

      • acceptable

        public static boolean acceptable​(java.lang.Object expected,
                                         java.lang.Object actual,
                                         double precision,
                                         double zeroThreshold)
      • acceptable

        public static boolean acceptable​(java.lang.Number expected,
                                         java.lang.Number actual,
                                         double precision,
                                         double zeroThreshold)
        Parameters:
        precision - The acceptable range given in proportion of the expected value, including its boundaries.
        zeroThreshold - The threshold for distinguishing between zero and non-zero values.
      • isZero

        public static boolean isZero​(java.lang.Number value,
                                     double zeroThreshold)