Class FeatureCalculatorSingleChangeInput<T extends FeatureInput>

Object
FeatureCalculatorSingleChangeInput<T>
Type Parameters:
T - feature-input-type
All Implemented Interfaces:
FeatureCalculatorSingle<T>

public class FeatureCalculatorSingleChangeInput<T extends FeatureInput> extends Object implements FeatureCalculatorSingle<T>
A FeatureCalculatorSingle but changes the input before calculation.
Author:
Owen Feehan
  • Constructor Details

    • FeatureCalculatorSingleChangeInput

      public FeatureCalculatorSingleChangeInput(FeatureCalculatorSingle<T> calculator, Consumer<T> change)
      Creates a new FeatureCalculatorSingleChangeInput instance.
      Parameters:
      calculator - Delegate which is called after an input is changed.
      change - A function that is applied to change the input before being passed to calculator.
  • Method Details