Class NumericUtils
java.lang.Object
software.amazon.awssdk.utils.NumericUtils
-
Method Summary
-
Method Details
-
saturatedCast
public static int saturatedCast(long value) Returns theintnearest in value tovalue.- Parameters:
value- anylongvalue- Returns:
- the same value cast to
intif it is in the range of theinttype,Integer.MAX_VALUEif it is too large, orInteger.MIN_VALUEif it is too small
-
min
-
max
-
longToByte
Converts a long to a byte array
-