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