Uses of Interface
org.apache.commons.functor.BinaryFunctor
Packages that use BinaryFunctor
Package
Description
Basic functor interfaces.
Classes that adapt one functor interface to another.
Commonly used functor implementations.
Various algorithm-esque functors.
Collection-based functors, algorithms and utilities.Comparator- and
Comparable-based functors, algorithms and utilities.
Functors composed of other functors.
-
Uses of BinaryFunctor in org.apache.commons.functor
Subinterfaces of BinaryFunctor in org.apache.commons.functorModifier and TypeInterfaceDescriptioninterfaceBinaryFunction<L,R, T> A functor that takes two arguments and returns a value.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. -
Uses of BinaryFunctor in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryFunctorModifier and TypeClassDescriptionfinal classfinal classAdapts aBinaryFunctionto theBinaryProcedureinterface by ignoring the value returned by the function.final classAdapts aBinaryPredicateto theBinaryFunctioninterface.final classfinal classIgnoreLeftFunction<L,R, T> Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the first binary argument.final classIgnoreLeftPredicate<L,R> Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the first binary argument.final classIgnoreLeftProcedure<L,R> Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the first binary argument.final classIgnoreRightFunction<L,R, T> Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the second binary argument.final classIgnoreRightPredicate<L,R> Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the second binary argument.final classIgnoreRightProcedure<L,R> Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the second binary argument. -
Uses of BinaryFunctor in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement BinaryFunctorModifier and TypeClassDescriptionfinal classConstant<T>Evaluatesto constant value.final classIsEqual<L,R> final classIsInstance<T>final classIsNotEqual<L,R> final classIsNotSame<L,R> Teststhe reference (!=) inequality of its arguments.final classIsSame<L,R> Teststhe reference (==) equality of its arguments.final classA predicate that returnstruethe first n times it is invoked.final classA procedure that does nothing at all.final classA predicate that returnsfalsethe first n times it is invoked, andtruethereafter. -
Uses of BinaryFunctor in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement BinaryFunctorModifier and TypeClassDescriptionfinal classReturn the first Object in aGeneratormatching aUnaryPredicate.classFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.final classTests whether aGeneratorcontains an element that matches aUnaryPredicate.final classReturn the index of the first Object in aGeneratormatching aUnaryPredicate, or -1 if not found.final classImplements an in-place transformation of a ListIterator's contents.final classRemove elements from left Iterator that match right UnaryPredicate.final classRetain elements in left Iterator that match right UnaryPredicate. -
Uses of BinaryFunctor in org.apache.commons.functor.core.collection
Classes in org.apache.commons.functor.core.collection that implement BinaryFunctorModifier and TypeClassDescriptionfinal classIsElementOf<L,R> ABinaryPredicatethat checks to see if the specified object is an element of the specified Collection. -
Uses of BinaryFunctor in org.apache.commons.functor.core.comparator
Classes in org.apache.commons.functor.core.comparator that implement BinaryFunctorModifier and TypeClassDescriptionfinal classAdapts aComparatorto theBinaryFunctioninterface.final classIsEquivalent<T>ABinaryPredicatethatteststrueiff the left argument is equal to the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is greater than or equal to the right argument under the specifiedComparator.final classIsLessThan<T>ABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is less than or equal to the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is not equal to the right argument under the specifiedComparator.final classMax<T>Adapts aComparatorto theBinaryFunctioninterface.final classMin<T>Adapts aComparatorto theBinaryFunctioninterface. -
Uses of BinaryFunctor in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement BinaryFunctorModifier and TypeClassDescription(package private) classAbstract base class forBinaryPredicatescomposed of a list ofBinaryPredicates.final classBinaryAnd<L,R> classABinaryFunctioncomposed 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.final classBinaryNot<L,R> Teststo the logical inverse of some other predicate.final classBinaryOr<L,R> classBinarySequence<L,R> final classConditionalBinaryFunction<L,R, T> ABinaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).final classABinaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).final classABinaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classTransformedBinaryFunction<L,R, T> A BinaryFunction whose result is then run through a UnaryFunction.private static final classTransformedBinaryFunction.Helper<X,L, R, T> Type-remembering helper.classA BinaryProcedure composed of a BinaryFunction whose result is then run through a UnaryProcedure.private static final classType-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.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> classABinaryPredicatecomposed 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.