# Class Pi.BinarySplittingProgressIndicator

java.lang.Object
org.apfloat.samples.Pi.BinarySplittingProgressIndicator

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  `Pi`

public static class Pi.BinarySplittingProgressIndicator extends Object implements Serializable
Indicates progress of the pi calculation using the binary splitting algorithm.

This implementation is thread safe for multiple threads to use concurrently.

Version:
  1.14.0
Author:
  Mikko Tommila
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BinarySplittingProgressIndicator(long terms)`
  Construct a progress indicator with the specified number of terms of the series.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `progress(long n1, long n2)`
  Advances the progress.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BinarySplittingProgressIndicator

    public BinarySplittingProgressIndicator(long terms)
    Construct a progress indicator with the specified number of terms of the series.
    Parameters:
      `terms` - Total number of terms to be calculated.

- ## Method Details

  - ### progress

    public void progress(long n1, long n2)
    Advances the progress.
    Parameters:
      `n1` - First term that has been calculated.
      `n2` - Last term that has been calculated, minus one.