Package org.apache.commons.functor.core
Commonly used functor implementations.
-
Class Summary Class Description Constant<T> Evaluatesto constant value.Identity<T> Evaluatesto its input argument.IsEqual<L,R> IsInstance<T> IsNotEqual<L,R> IsNotNull<T> IsNotSame<L,R> Teststhe reference (!=) inequality of its arguments.IsNull<A> IsSame<L,R> Teststhe reference (==) equality of its arguments.LeftIdentity Holder class for a left-identityBinaryFunction(evaluates to the left argument) and a left-identityBinaryPredicate(tests whether leftBooleanargument equalsBoolean.TRUE).Limit A predicate that returnstruethe first n times it is invoked.NoOp A procedure that does nothing at all.Offset A predicate that returnsfalsethe first n times it is invoked, andtruethereafter.RightIdentity Holder class for a right-identityBinaryFunction(evaluates to the right argument) and a right-identityBinaryPredicate(tests whether rightBooleanargument equalsBoolean.TRUE).