Package dev.failsafe.internal.util
Class Maths
java.lang.Object
dev.failsafe.internal.util.Maths
Misc math utilities.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Maths
private Maths()
-
-
Method Details
-
add
public static long add(long a, long b) Returns the sum ofa
andb
elseLong.MAX_VALUE
if the sum would otherwise overflow. -
roundDown
public static long roundDown(long input, long interval) Returns theinput
rounded down to the nearestinterval
.
-