Package org.apache.parquet
Class Ints
- java.lang.Object
-
- org.apache.parquet.Ints
-
@Deprecated public final class Ints extends Object
Deprecated.Utilities for working with ints
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
checkedCast(long value)
Deprecated.replaced byMath.toIntExact(long)
-
-
-
Method Detail
-
checkedCast
public static int checkedCast(long value)
Deprecated.replaced byMath.toIntExact(long)
Cast value to a an int, or throw an exception if there is an overflow.- Parameters:
value
- a long to be casted to an int- Returns:
- an int that is == to value
- Throws:
IllegalArgumentException
- if value can't be casted to an int
-
-