Class Ints


  • @Deprecated
    public final class Ints
    extends Object
    Deprecated.
    Utilities for working with ints
    • Method Detail

      • checkedCast

        public static int checkedCast​(long value)
        Deprecated.
        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