net.sf.molae.pipe.binop
Class BinaryFunctions
java.lang.Object
net.sf.molae.pipe.binop.BinaryFunctions
public final class BinaryFunctions
- extends Object
Contains useful implementations of the BinaryFunction
interface.
Method Summary |
static
|
firstOperand()
Returns a binary function that always returns the first operand. |
static
|
secondOperand()
Returns a binary function that always returns the second operand. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIRST_OPERAND
public static final BinaryFunction FIRST_OPERAND
- A binary function that returns the first operand.
- See Also:
firstOperand()
BinaryFunctions
public BinaryFunctions()
firstOperand
public static final <S1,S2> BinaryFunction<S1,S2,S1> firstOperand()
- Returns a binary function that always returns the first operand.
secondOperand
public static final <S1,S2> BinaryFunction<S1,S2,S2> secondOperand()
- Returns a binary function that always returns the second operand.