Package org.ojalgo.function
Class BinaryFunction.FixedSecond<N extends Comparable<N>>
java.lang.Object
org.ojalgo.function.BinaryFunction.FixedSecond<N>
- All Implemented Interfaces:
DoubleUnaryOperator
,Function<N,
,N> UnaryOperator<N>
,BasicFunction
,UnaryFunction<N>
,NumberDefinition
- Enclosing interface:
BinaryFunction<N extends Comparable<N>>
public static final class BinaryFunction.FixedSecond<N extends Comparable<N>>
extends Object
implements UnaryFunction<N>, NumberDefinition
A BinaryFunction with a set/fixed second argument.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,
F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final float
private final BinaryFunction
<N> private final N
-
Constructor Summary
ConstructorsConstructorDescriptionFixedSecond
(BinaryFunction<N> function, double arg2) FixedSecond
(BinaryFunction<N> function, N arg2) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.DoubleUnaryOperator
andThen, compose
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 Details
-
myDoubleValue
private final double myDoubleValue -
myFloatValue
private final float myFloatValue -
myFunction
-
myNumber
-
-
Constructor Details
-
FixedSecond
FixedSecond(BinaryFunction<N> function, double arg2) -
FixedSecond
FixedSecond(BinaryFunction<N> function, N arg2)
-
-
Method Details
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in interfaceNumberDefinition
-
floatValue
public float floatValue()- Specified by:
floatValue
in interfaceNumberDefinition
-
getFunction
-
getNumber
-
invoke
public double invoke(double arg1) - Specified by:
invoke
in interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
public float invoke(float arg1) - Specified by:
invoke
in interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
- Specified by:
invoke
in interfaceUnaryFunction<N extends Comparable<N>>
-