Package io.joynr.common
Class ExpiryDateUtils
- java.lang.Object
-
- io.joynr.common.ExpiryDateUtils
-
public class ExpiryDateUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_JS_INT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longaddAndLimit(long first, long second)Adds first argument to second.static longsubtract(long first, long second)Subtracts second argument from first
-
-
-
Field Detail
-
MAX_JS_INT
public static final long MAX_JS_INT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addAndLimit
public static long addAndLimit(long first, long second)Adds first argument to second. Result is limited to JavaScript max safe integer value.- Parameters:
first- first argument of sumsecond- second argument of sum- Returns:
- result of sum
-
subtract
public static long subtract(long first, long second)Subtracts second argument from first- Parameters:
first- first argument of subtractionsecond- second argument of subtraction- Returns:
- result of subtraction
-
-