public class Ints extends Object
Constructor and Description |
---|
Ints() |
Modifier and Type | Method and Description |
---|---|
static int |
checkedCast(long value)
Returns the
int value that is equal to value , if possible. |
public static int checkedCast(long value)
int
value that is equal to value
, if possible.value
- any value in the range of the int
typeint
value that equals value
IllegalArgumentException
- if value
is greater than Integer.MAX_VALUE
or less than Integer.MIN_VALUE
Copyright © 2019. All rights reserved.