Uses of Interface
org.apache.commons.functor.Functor
-
Packages that use Functor Package Description org.apache.commons.functor Basic functor interfaces.org.apache.commons.functor.adapter Classes that adapt one functor interface to another.org.apache.commons.functor.core Commonly used functor implementations.org.apache.commons.functor.core.algorithm Various algorithm-esque functors.org.apache.commons.functor.core.collection Collection-based functors, algorithms and utilities.org.apache.commons.functor.core.comparator Comparator- andComparable-based functors, algorithms and utilities.org.apache.commons.functor.core.composite Functors composed of other functors.org.apache.commons.functor.generator.util Contains utility code for Generators. -
-
Uses of Functor in org.apache.commons.functor
Subinterfaces of Functor in org.apache.commons.functor Modifier and Type Interface Description interfaceBinaryFunction<L,R,T>A functor that takes two arguments and returns a value.interfaceBinaryFunctor<L,R>Marker interface for binary (two-argument) functors.interfaceBinaryPredicate<L,R>A functor that takes two arguments and returns abooleanvalue.interfaceBinaryProcedure<L,R>A functor that takes two arguments and has no return value.interfaceFunction<T>A functor that takes no arguments and returns a value.interfaceNullaryFunctorMarker interface for nullary (zero-argument) functors.interfacePredicateA functor that takes no arguments and returns abooleanvalue.interfaceProcedureA functor that takes no arguments and returns no value.interfaceUnaryFunction<A,T>A functor that takes one argument and returns anObjectvalue.interfaceUnaryFunctor<A>Marker interface for unary (single-argument) functors.interfaceUnaryPredicate<A>A functor that takes one argument and returns abooleanvalue.interfaceUnaryProcedure<A>A functor that takes one argument and returns no value. -
Uses of Functor in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement Functor Modifier and Type Class Description classBinaryFunctionBinaryPredicate<L,R>classBinaryFunctionBinaryProcedure<L,R>Adapts aBinaryFunctionto theBinaryProcedureinterface by ignoring the value returned by the function.classBinaryFunctionUnaryFunction<A,T>Adapts a BinaryFunction as a UnaryFunction by sending the same argument to both sides of the BinaryFunction.classBinaryPredicateBinaryFunction<L,R>Adapts aBinaryPredicateto theBinaryFunctioninterface.classBinaryPredicateUnaryPredicate<A>Adapts a BinaryPredicate as a UnaryPredicate by sending the same argument to both sides of the BinaryPredicate.classBinaryProcedureBinaryFunction<L,R,T>classBinaryProcedureUnaryProcedure<A>Adapts a BinaryProcedure as a UnaryProcedure by sending the same argument to both sides of the BinaryProcedure.classBoundFunction<T>Adapts aUnaryFunctionto theFunctioninterface using a constant unary argument.classBoundPredicateAdapts aUnaryPredicateto thePredicateinterface using a constant unary argument.classBoundProcedureAdapts aUnaryProcedureto theProcedureinterface using a constant unary argument.classFullyBoundFunction<T>Adapts aBinaryFunctionto theFunctioninterface using constant arguments.classFullyBoundPredicateAdapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.classFullyBoundProcedureAdapts aBinaryProcedureto theProcedureinterface using a constant left-side argument.classFunctionPredicateclassFunctionProcedureclassFunctionUnaryFunction<A,T>Adapts aFunctionto theUnaryFunctioninterface by ignoring the unary argument.classIgnoreLeftFunction<L,R,T>Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the first binary argument.classIgnoreLeftPredicate<L,R>Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the first binary argument.classIgnoreLeftProcedure<L,R>Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the first binary argument.classIgnoreRightFunction<L,R,T>Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the second binary argument.classIgnoreRightPredicate<L,R>Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the second binary argument.classIgnoreRightProcedure<L,R>Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the second binary argument.classLeftBoundFunction<A,T>Adapts aBinaryFunctionto theUnaryFunctioninterface using a constant left-side argument.classLeftBoundPredicate<A>Adapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.classLeftBoundProcedure<A>Adapts aBinaryProcedureto theUnaryProcedureinterface using a constant left-side argument.classPredicateFunctionclassPredicateUnaryPredicate<A>Adapts aPredicateto theUnaryPredicateinterface by ignoring the given argument.classProcedureFunction<T>classProcedureUnaryProcedure<A>Adapts aProcedureto theUnaryProcedureinterface by ignoring the arguments.classRightBoundFunction<A,T>Adapts aBinaryFunctionto theUnaryFunctioninterface using a constant right-side argument.classRightBoundPredicate<A>Adapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.classRightBoundProcedure<A>Adapts aBinaryProcedureto theUnaryProcedureinterface using a constant left-side argument.classUnaryFunctionUnaryPredicate<A>classUnaryFunctionUnaryProcedure<A>Adapts aUnaryFunctionto theUnaryProcedureinterface by ignoring the value returned by the function.classUnaryPredicateUnaryFunction<A>Adapts aUnaryPredicateto theUnaryFunctioninterface.classUnaryProcedureUnaryFunction<A,T> -
Uses of Functor in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement Functor Modifier and Type Class Description classConstant<T>Evaluatesto constant value.classIdentity<T>Evaluatesto its input argument.classIsEqual<L,R>classIsInstance<T>classIsNotEqual<L,R>classIsNotNull<T>classIsNotSame<L,R>Teststhe reference (!=) inequality of its arguments.classIsNull<A>classIsSame<L,R>Teststhe reference (==) equality of its arguments.classLimitA predicate that returnstruethe first n times it is invoked.classNoOpA procedure that does nothing at all.classOffsetA predicate that returnsfalsethe first n times it is invoked, andtruethereafter. -
Uses of Functor in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement Functor Modifier and Type Class Description classDoUntilDo-until algorithm (test after).classDoWhileDo-while algorithm (test after).classFindWithinGenerator<E>Return the first Object in aGeneratormatching aUnaryPredicate.private static classFindWithinGenerator.FindProcedure<T>Helper procedure.classFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.private static classFoldLeft.FoldLeftHelper<T>Helper procedure.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.private static classFoldRight.FoldRightHelper<T>Helper class.classGeneratorContains<T>Tests whether aGeneratorcontains an element that matches aUnaryPredicate.private static classGeneratorContains.ContainsProcedure<T>Helper procedure.classIndexOfInGenerator<T>Return the index of the first Object in aGeneratormatching aUnaryPredicate, or -1 if not found.private static classIndexOfInGenerator.IndexProcedure<T>Helper procedure.classInPlaceTransform<T>Implements an in-place transformation of a ListIterator's contents.(package private) classPredicatedLoopBase class for predicated procedure algorithms.classRecursiveEvaluationTail recursion forfunctions.classRemoveMatching<T>Remove elements from left Iterator that match right UnaryPredicate.classRetainMatching<T>Retain elements in left Iterator that match right UnaryPredicate.classUntilDoUntil-do algorithm (test before).classWhileDoWhile-do algorithm (test before). -
Uses of Functor in org.apache.commons.functor.core.collection
Classes in org.apache.commons.functor.core.collection that implement Functor Modifier and Type Class Description classIsElementOf<L,R>ABinaryPredicatethat checks to see if the specified object is an element of the specified Collection.classIsEmpty<A>classSize<A>Returns the size of the specified Collection, or the length of the specified array or String. -
Uses of Functor in org.apache.commons.functor.core.comparator
Classes in org.apache.commons.functor.core.comparator that implement Functor Modifier and Type Class Description classComparatorFunction<T>Adapts aComparatorto theBinaryFunctioninterface.classIsEquivalent<T>ABinaryPredicatethatteststrueiff the left argument is equal to the right argument under the specifiedComparator.classIsGreaterThan<T>ABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.classIsGreaterThanOrEqual<T>ABinaryPredicatethatteststrueiff the left argument is greater than or equal to the right argument under the specifiedComparator.classIsLessThan<T>ABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.classIsLessThanOrEqual<T>ABinaryPredicatethatteststrueiff the left argument is less than or equal to the right argument under the specifiedComparator.classIsNotEquivalent<T>ABinaryPredicatethatteststrueiff the left argument is not equal to the right argument under the specifiedComparator.classIsWithinRange<A extends java.lang.Comparable<A>>AUnaryPredicatethat tests whether aComparableobject is within a range.classMax<T>Adapts aComparatorto theBinaryFunctioninterface.classMin<T>Adapts aComparatorto theBinaryFunctioninterface. -
Uses of Functor in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement Functor Modifier and Type Class Description classAbstractLoopProcedureAbstract base class forWhileDoProcedureandDoWhileProcedureused to implement loop procedures.classAnd(package private) classBaseBinaryPredicateList<L,R>Abstract base class forBinaryPredicatescomposed of a list ofBinaryPredicates.(package private) classBasePredicateListAbstract base class forPredicatescomposed of a list ofPredicates.(package private) classBaseUnaryPredicateList<A>Abstract base class forUnaryPredicatescomposed of a list ofUnaryPredicates.classBinaryAnd<L,R>classBinaryCompositeBinaryFunction<L,R,T>ABinaryFunctioncomposed of three binary functions, f, g and h, evaluating the ordered parameters x, y tof(g(x,y),h(x,y)).private static classBinaryCompositeBinaryFunction.Helper<G,H,L,R,T>Type-remembering Helper.classBinaryNot<L,R>Teststo the logical inverse of some other predicate.classBinaryOr<L,R>classBinarySequence<L,R>classCompositeUnaryFunction<A,T>AUnaryFunctionrepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.private static classCompositeUnaryFunction.Helper<X,A,T>Encapsulates a double function evaluation.classCompositeUnaryPredicate<A>AUnaryPredicaterepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.classCompositeUnaryProcedure<A>AUnaryProcedurerepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.classConditionalBinaryFunction<L,R,T>ABinaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalBinaryPredicate<L,R>ABinaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalBinaryProcedure<L,R>ABinaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalFunction<T>AFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalPredicateAPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalProcedureAProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalUnaryFunction<A,T>AUnaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalUnaryPredicate<A>AUnaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).classConditionalUnaryProcedure<A>AUnaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classDoWhileProcedureAProcedureimplementation of a while loop.classNotTeststo the logical inverse of some other predicate.classOrclassSequenceclassTransformedBinaryFunction<L,R,T>A BinaryFunction whose result is then run through a UnaryFunction.private static classTransformedBinaryFunction.Helper<X,L,R,T>Type-remembering helper.classTransformedBinaryProcedure<L,R>A BinaryProcedure composed of a BinaryFunction whose result is then run through a UnaryProcedure.private static classTransformedBinaryProcedure.Helper<X,L,R>Type-remembering helper.classTransformedFunction<T>A Function whose result is then run through a UnaryFunction.private static classTransformedFunction.Helper<X,T>Type-remembering helper.classTransformedProcedureA Procedure composed of a Function whose result is then run through a UnaryProcedure.private static classTransformedProcedure.Helper<X>Type-remembering helper.classTransposedFunction<L,R,T>Transposes (swaps) the arguments to some otherfunction.classTransposedPredicate<L,R>Transposes (swaps) the arguments to some otherpredicate.classTransposedProcedure<L,R>Transposes (swaps) the arguments to some otherprocedure.classUnaryAnd<A>classUnaryCompositeBinaryFunction<L,R,T>ABinaryFunctioncomposed of one binary function, f, and two unary functions, g and h, evaluating the ordered parameters x, y tof(g(x),h(y)).private static classUnaryCompositeBinaryFunction.Helper<G,H,L,R,T>classUnaryCompositeBinaryPredicate<L,R>ABinaryPredicatecomposed of one binary predicate, p, and two unary functions, f and g, evaluating the ordered parameters x, y top(f(x),g(y)).private static classUnaryCompositeBinaryPredicate.Helper<G,H,L,R>Internal helper.classUnaryNot<A>Teststo the logical inverse of some other predicate.classUnaryOr<A>classUnarySequence<A>classWhileDoProcedureAProcedureimplementation of a while loop. -
Uses of Functor in org.apache.commons.functor.generator.util
Classes in org.apache.commons.functor.generator.util that implement Functor Modifier and Type Class Description classCollectionTransformer<E>Transforms a generator into a collection.
-