Package org.apache.commons.functor.core
package org.apache.commons.functor.core
Commonly used functor implementations.
-
ClassesClassDescriptionConstant<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.Holder class for a left-identityBinaryFunction(evaluates to the left argument) and a left-identityBinaryPredicate(tests whether leftBooleanargument equalsBoolean.TRUE).A predicate that returnstruethe first n times it is invoked.A procedure that does nothing at all.A predicate that returnsfalsethe first n times it is invoked, andtruethereafter.Holder class for a right-identityBinaryFunction(evaluates to the right argument) and a right-identityBinaryPredicate(tests whether rightBooleanargument equalsBoolean.TRUE).