public final class NumericUtils extends Object
| Modifier and Type | Method and 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 © 2019. All rights reserved.