Package org.ojalgo.function
Class BinaryFunction.FixedFirst<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.function.BinaryFunction.FixedFirst<N>
-
- All Implemented Interfaces:
java.util.function.DoubleUnaryOperator
,java.util.function.Function<N,N>
,java.util.function.UnaryOperator<N>
,BasicFunction
,UnaryFunction<N>
,NumberDefinition
- Enclosing interface:
- BinaryFunction<N extends java.lang.Comparable<N>>
public static final class BinaryFunction.FixedFirst<N extends java.lang.Comparable<N>> extends java.lang.Object implements UnaryFunction<N>, NumberDefinition
A BinaryFunction with a set/fixed first argument.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
-
-
Field Summary
Fields Modifier and Type Field Description private double
myDoubleValue
private float
myFloatValue
private BinaryFunction<N>
myFunction
private N
myNumber
-
Constructor Summary
Constructors Constructor Description FixedFirst(double arg1, BinaryFunction<N> function)
FixedFirst(N arg1, BinaryFunction<N> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
doubleValue()
float
floatValue()
BinaryFunction<N>
getFunction()
N
getNumber()
double
invoke(double arg2)
float
invoke(float arg2)
N
invoke(N arg2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, intValue, longValue, shortValue
-
Methods inherited from interface org.ojalgo.function.UnaryFunction
andThen, apply, applyAsDouble, compose, invoke, invoke, invoke, invoke
-
-
-
-
Field Detail
-
myDoubleValue
private final double myDoubleValue
-
myFloatValue
private final float myFloatValue
-
myFunction
private final BinaryFunction<N extends java.lang.Comparable<N>> myFunction
-
-
Constructor Detail
-
FixedFirst
FixedFirst(double arg1, BinaryFunction<N> function)
-
FixedFirst
FixedFirst(N arg1, BinaryFunction<N> function)
-
-
Method Detail
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in interfaceNumberDefinition
-
floatValue
public float floatValue()
- Specified by:
floatValue
in interfaceNumberDefinition
-
getFunction
public BinaryFunction<N> getFunction()
-
getNumber
public N getNumber()
-
invoke
public double invoke(double arg2)
- Specified by:
invoke
in interfaceUnaryFunction<N extends java.lang.Comparable<N>>
-
invoke
public float invoke(float arg2)
- Specified by:
invoke
in interfaceUnaryFunction<N extends java.lang.Comparable<N>>
-
-