Package software.amazon.awssdk.utils
Class NumericUtils
java.lang.Object
software.amazon.awssdk.utils.NumericUtils
-
Method Summary
-
Method Details
-
saturatedCast
public static int saturatedCast(long value) Returns theint
nearest in value tovalue
.- Parameters:
value
- anylong
value- Returns:
- the same value cast to
int
if it is in the range of theint
type,Integer.MAX_VALUE
if it is too large, orInteger.MIN_VALUE
if it is too small
-
min
-
max
-