org.ojalgo.function
Class PreconfiguredSecond<N extends Number>

java.lang.Object
  extended by org.ojalgo.function.PreconfiguredSecond<N>
All Implemented Interfaces:
Function<N>, UnaryFunction<N>

public final class PreconfiguredSecond<N extends Number>
extends Object
implements UnaryFunction<N>

A BinaryFunction with a set/fixed second argument.

Author:
apete

Constructor Summary
PreconfiguredSecond(BinaryFunction<N> aFunc, N aSecondArg)
           
 
Method Summary
 double invoke(double aFirstArg)
           
 N invoke(N aFirstArg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreconfiguredSecond

public PreconfiguredSecond(BinaryFunction<N> aFunc,
                           N aSecondArg)
Method Detail

invoke

public double invoke(double aFirstArg)
Specified by:
invoke in interface UnaryFunction<N extends Number>

invoke

public N invoke(N aFirstArg)
Specified by:
invoke in interface UnaryFunction<N extends Number>