Interface StatisticResult

    • Method Detail

      • getAsInt

        default int getAsInt()

        The default implementation uses the closest representable int value of the DoubleSupplier.getAsDouble() result. In the event of ties the result is rounded towards positive infinity. This will raise an ArithmeticException if the closest integer result is not within the range [-2^31, 2^31).

        Specified by:
        getAsInt in interface java.util.function.IntSupplier
        Throws:
        java.lang.ArithmeticException - if the result overflows an int or is not finite
      • getAsLong

        default long getAsLong()

        The default implementation uses the closest representable long value of the DoubleSupplier.getAsDouble() result. In the event of ties the result is rounded towards positive infinity. This will raise an ArithmeticException if the closest integer result is not within the range [-2^63, 2^63).

        Specified by:
        getAsLong in interface java.util.function.LongSupplier
        Throws:
        java.lang.ArithmeticException - if the result overflows a long or is not finite
      • getAsBigInteger

        default java.math.BigInteger getAsBigInteger()
        Gets a result as a BigInteger.

        The default implementation uses the closest representable BigInteger value of the DoubleSupplier.getAsDouble() result. In the event of ties the result is rounded towards positive infinity. This will raise an ArithmeticException if the result is not finite.

        Returns:
        a result
        Throws:
        java.lang.ArithmeticException - if the result is not finite