Interface IntegerNumber

All Superinterfaces:
Comparable<Number>, Number

public interface IntegerNumber extends Number
An instance of this class represents an integer number.
  • Method Details

    • intValue

      int intValue()
      Attempts to extract a Java int value from this IntegerNumber. The answer could be wrong if the integer value is outside of the range of the Java int type.
      If this number is infinite, it will return Integer.MAX_VALUE = 2147483647 [0x7fffffff]
    • bigIntegerValue

      BigInteger bigIntegerValue()
      Returns this integer as an instance of Java's BigInteger.
      If this number is infinite, it will return null;
      Returns:
      instance of BigInteger equivalent to this integer