Interface Operation<T>

All Superinterfaces:
Serializable
All Known Implementing Classes:
Pi.BorweinPiCalculator, Pi.ChudnovskyPiCalculator, Pi.GaussLegendrePiCalculator, Pi.RamanujanPiCalculator, PiDistributed.DistributedChudnovskyPiCalculator, PiDistributed.DistributedRamanujanPiCalculator, PiParallel.ParallelChudnovskyPiCalculator, PiParallel.ParallelRamanujanPiCalculator, PiParallel.ThreadLimitedOperation
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 interface Operation<T> extends Serializable
Interface for implementing arbitrary operations to be executed.
Version:
1.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes some code, returning a value.
  • Method Details

    • execute

      T execute()
      Executes some code, returning a value.
      Returns:
      Return value of the operation.