public class VerificationUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
acceptable(Number expected,
Number actual,
double precision,
double zeroThreshold) |
static boolean |
acceptable(Object expected,
Object actual,
double precision,
double zeroThreshold) |
static boolean |
isZero(Number value,
double zeroThreshold) |
public static boolean acceptable(Object expected, Object actual, double precision, double zeroThreshold)
public static boolean acceptable(Number expected, Number actual, double precision, double zeroThreshold)
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.public static boolean isZero(Number value, double zeroThreshold)
Copyright © 2021. All rights reserved.