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

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

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

A BinaryFunction with a set/fixed first argument.

Author:
apete

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

Constructor Detail

PreconfiguredFirst

public PreconfiguredFirst(N aFirstArg,
                          BinaryFunction<N> aFunc)
Method Detail

doubleValue

public final double doubleValue()

getFunction

public final BinaryFunction<N> getFunction()

getNumber

public final N getNumber()

invoke

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

invoke

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