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 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
ConstructorsConstructorDescriptionFixedSecond(BinaryFunction<N> function, double arg2) FixedSecond(BinaryFunction<N> function, N arg2) -
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
-
FixedSecond
FixedSecond(BinaryFunction<N> function, double arg2) -
FixedSecond
FixedSecond(BinaryFunction<N> function, N arg2)
-
-
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 arg1) - Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
public float invoke(float arg1) - Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
- Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-