Class BinaryFunction.FixedFirst<N extends Comparable<N>>
java.lang.Object
org.ojalgo.function.BinaryFunction.FixedFirst<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.FixedFirst<N extends Comparable<N>>
extends Object
implements UnaryFunction<N>, NumberDefinition
A BinaryFunction with a set/fixed first argument.
-
Nested Class Summary
Nested classes/interfaces inherited from interface BasicFunction
BasicFunction.Differentiable<N,F>, BasicFunction.Integratable<N, F>, BasicFunction.PlainUnary<T, R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final floatprivate final BinaryFunction<N> private final N -
Constructor Summary
ConstructorsConstructorDescriptionFixedFirst(double arg1, BinaryFunction<N> function) FixedFirst(N arg1, BinaryFunction<N> function) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DoubleUnaryOperator
andThen, composeMethods inherited from interface NumberDefinition
booleanValue, byteValue, intValue, longValue, shortValueMethods inherited from interface 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
-
FixedFirst
FixedFirst(double arg1, BinaryFunction<N> function) -
FixedFirst
FixedFirst(N arg1, BinaryFunction<N> function)
-
-
Method Details
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfaceNumberDefinition
-
floatValue
public float floatValue()- Specified by:
floatValuein interfaceNumberDefinition
-
getFunction
-
getNumber
-
invoke
public double invoke(double arg2) - Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
public float invoke(float arg2) - Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
- Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-