Class RightIdentity
java.lang.Object
org.apache.commons.functor.core.RightIdentity
Holder class for a right-identity
BinaryFunction (evaluates to the right argument) and a right-identity
BinaryPredicate (tests whether right Boolean argument equals Boolean.TRUE).- Version:
- $Revision$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BinaryFunction<Object, Object, Object> Right-identity function.static final BinaryPredicate<Object, Boolean> Right-identity predicate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <L,R> BinaryFunction <L, R, R> function()Get a typed right-identity BinaryFunction.static <L> BinaryPredicate<L, Boolean> Get a typed right-identity BinaryPredicate.
-
Field Details
-
FUNCTION
Right-identity function. -
PREDICATE
Right-identity predicate.
-
-
Constructor Details
-
RightIdentity
public RightIdentity()Create a new RightIdentity.
-
-
Method Details
-
function
Get a typed right-identity BinaryFunction.- Type Parameters:
L- the left argument type.R- the right argument type.- Returns:
- BinaryFunctioninvalid input: '<'L, R, R>
-
predicate
Get a typed right-identity BinaryPredicate.- Type Parameters:
L- the left argument type.- Returns:
- BinaryPredicateinvalid input: '<'L, Boolean>
-