Package org.apache.parquet
Class Ints
java.lang.Object
org.apache.parquet.Ints
Deprecated.
Utilities for working with ints
-
Method Summary
-
Method Details
-
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
-
Math.toIntExact(long)