List of utility methods to do Number Equal
boolean | areEqual(int i, int j) Returns true if and only if given integers are equal. return i == j;
|
boolean | areEqual(int o1, int o2) are Equal return o1 == o2;
|
boolean | areEqual(T s1, T s2) Compares two objects of the same type for equality taking into account that none, one, or both may be null return (s1 == null) ? (s2 == null) : (s2 != null) ? s1.equals(s2) : false;
|
boolean | areEqual(T... elements) method that determines if all inputs are .equal(). if (elements.length < 2) { return true; T first = elements[0]; for (int i = 1; i < elements.length; i++) { T current = elements[i]; if (first == null) { if (current != null) { ... |
boolean | areEquals(boolean first, boolean second) are Equals return first == second;
|
boolean | areEquals(double p, double q) are Equals return p > q - APPROX && p < q + APPROX;
|