public class NumericUtils extends Object
Constructor | Description |
---|---|
NumericUtils() |
Modifier and Type | Method | Description |
---|---|---|
static int |
saturatedCast(long value) |
Returns the
int nearest in value to value . |
public static int saturatedCast(long value)
int
nearest in value to value
.value
- any long
valueint
if it is in the range of the int
type,
Integer.MAX_VALUE
if it is too large, or Integer.MIN_VALUE
if it is too
smallCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.