Class SafeOperations
java.lang.Object
org.apache.commons.imaging.internal.SafeOperations
Provides safe arithmetic operations to avoid, for example, numeric overflows.
- Since:
- 1.0-alpha4
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
add
(int... values) AppliesMath.addExact(int, int)
to a variable length array of integers.
-
Method Details
-
add
AppliesMath.addExact(int, int)
to a variable length array of integers.- Parameters:
values
- variable length array of integers.- Returns:
- the values safely added.
-