Interface Fraction.ConvergenceTest

  • Enclosing class:
    Fraction
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface Fraction.ConvergenceTest
    A test to determine if a series of fractions has converged.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean test​(int numerator, int denominator)
      Evaluates if the fraction formed by numerator/denominator satisfies this convergence test.
    • Method Detail

      • test

        boolean test​(int numerator,
                     int denominator)
        Evaluates if the fraction formed by numerator/denominator satisfies this convergence test.
        Parameters:
        numerator - the numerator
        denominator - the denominator
        Returns:
        if this convergence test is satisfied