Uses of Interface
org.apache.commons.functor.UnaryFunction
-
Packages that use UnaryFunction Package Description 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 Contains code related to Generators.org.apache.commons.functor.generator.util Contains utility code for Generators. -
-
Uses of UnaryFunction in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement UnaryFunction Modifier and Type Class Description classBinaryFunctionUnaryFunction<A,T>Adapts a BinaryFunction as a UnaryFunction by sending the same argument to both sides of the BinaryFunction.classFunctionUnaryFunction<A,T>Adapts aFunctionto theUnaryFunctioninterface by ignoring the unary argument.classLeftBoundFunction<A,T>Adapts aBinaryFunctionto theUnaryFunctioninterface using a constant left-side argument.classRightBoundFunction<A,T>Adapts aBinaryFunctionto theUnaryFunctioninterface using a constant right-side argument.classUnaryPredicateUnaryFunction<A>Adapts aUnaryPredicateto theUnaryFunctioninterface.classUnaryProcedureUnaryFunction<A,T>Fields in org.apache.commons.functor.adapter declared as UnaryFunction Modifier and Type Field Description private UnaryFunction<java.lang.Object,? extends T>BoundFunction. functionTheUnaryFunctionI'm wrapping.private UnaryFunction<? super R,? extends T>IgnoreLeftFunction. functionTheUnaryFunctionI'm wrapping.private UnaryFunction<? super L,? extends T>IgnoreRightFunction. functionTheUnaryFunctionI'm wrapping.private UnaryFunction<? super A,java.lang.Boolean>UnaryFunctionUnaryPredicate. functionTheUnaryFunctionI'm wrapping.private UnaryFunction<? super A,?>UnaryFunctionUnaryProcedure. functionTheUnaryFunctionI'm wrapping.Methods in org.apache.commons.functor.adapter that return UnaryFunction Modifier and Type Method Description static <A,T>
UnaryFunction<A,T>BinaryFunctionUnaryFunction. adapt(BinaryFunction<? super A,? super A,? extends T> function)Adapt a BinaryFunction as a UnaryFunction.Methods in org.apache.commons.functor.adapter with parameters of type UnaryFunction Modifier and Type Method Description static <L,R,T>
IgnoreLeftFunction<L,R,T>IgnoreLeftFunction. adapt(UnaryFunction<? super R,? extends T> function)Adapt a UnaryFunction to the BinaryFunction interface.static <L,R,T>
IgnoreRightFunction<L,R,T>IgnoreRightFunction. adapt(UnaryFunction<? super L,? extends T> function)Adapt a UnaryFunction to the BinaryFunction interface.static <A> UnaryFunctionUnaryPredicate<A>UnaryFunctionUnaryPredicate. adapt(UnaryFunction<? super A,java.lang.Boolean> function)static <A> UnaryFunctionUnaryProcedure<A>UnaryFunctionUnaryProcedure. adapt(UnaryFunction<? super A,?> function)static <A,T>
BoundFunction<T>BoundFunction. bind(UnaryFunction<? super A,? extends T> function, A arg)Adapt the given, possibly-null,UnaryFunctionto theFunctioninterface by binding the specifiedObjectas a constant argument.Constructors in org.apache.commons.functor.adapter with parameters of type UnaryFunction Constructor Description BoundFunction(UnaryFunction<? super A,? extends T> function, A arg)Create a new BoundFunction instance.IgnoreLeftFunction(UnaryFunction<? super R,? extends T> function)Create a new IgnoreLeftFunction.IgnoreRightFunction(UnaryFunction<? super L,? extends T> function)Create a new IgnoreRightFunction.UnaryFunctionUnaryPredicate(UnaryFunction<? super A,java.lang.Boolean> function)Create anUnaryPredicatewrapping the givenUnaryFunction.UnaryFunctionUnaryProcedure(UnaryFunction<? super A,?> function)Create anUnaryProcedurewrapping the givenUnaryFunction. -
Uses of UnaryFunction in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement UnaryFunction Modifier and Type Class Description classConstant<T>Evaluatesto constant value.classIdentity<T>Evaluatesto its input argument. -
Uses of UnaryFunction in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement UnaryFunction Modifier and Type Class Description classFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.Methods in org.apache.commons.functor.core.algorithm with parameters of type UnaryFunction Modifier and Type Method Description voidInPlaceTransform. run(java.util.ListIterator<T> left, UnaryFunction<? super T,? extends T> right)Execute this procedure. -
Uses of UnaryFunction in org.apache.commons.functor.core.collection
Classes in org.apache.commons.functor.core.collection that implement UnaryFunction Modifier and Type Class Description classSize<A>Returns the size of the specified Collection, or the length of the specified array or String.Fields in org.apache.commons.functor.core.collection declared as UnaryFunction Modifier and Type Field Description private UnaryFunction<? super E,? extends T>TransformedIterator. functionThe function to apply to each iterator element.Methods in org.apache.commons.functor.core.collection with parameters of type UnaryFunction Modifier and Type Method Description static <E> java.util.Iterator<?>TransformedIterator. maybeTransform(java.util.Iterator<? extends E> iter, UnaryFunction<? super E,?> func)Get an Iterator instance that may be transformed.static <E,T>
java.util.Iterator<T>TransformedIterator. transform(java.util.Iterator<? extends E> iter, UnaryFunction<? super E,? extends T> func)Get a Transformed Iterator instance.Constructors in org.apache.commons.functor.core.collection with parameters of type UnaryFunction Constructor Description TransformedIterator(java.util.Iterator<? extends E> iterator, UnaryFunction<? super E,? extends T> function)Create a new TransformedIterator. -
Uses of UnaryFunction in org.apache.commons.functor.core.comparator
Methods in org.apache.commons.functor.core.comparator that return UnaryFunction Modifier and Type Method Description static <T extends java.lang.Comparable<?>>
UnaryFunction<T,T>Max. instance(T right)Get a Max UnaryFunction.static <T extends java.lang.Comparable<?>>
UnaryFunction<T,T>Min. instance(T right)Get a Min UnaryFunction. -
Uses of UnaryFunction in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement UnaryFunction Modifier and Type Class Description 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.classConditionalUnaryFunction<A,T>AUnaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).Fields in org.apache.commons.functor.core.composite declared as UnaryFunction Modifier and Type Field Description private UnaryFunction<? super A,? extends T>ConditionalUnaryFunction. elseFuncthe function executed if the condition is not satisfied.private UnaryFunction<? super X,? extends T>CompositeUnaryFunction.Helper. followingThe last evaluator function.private UnaryFunction<? super X,? extends T>TransformedBinaryFunction.Helper. followingThe following function.private UnaryFunction<? super X,? extends T>TransformedFunction.Helper. followingThe following function.private UnaryFunction<? super A,? extends T>CompositeUnaryFunction. functionThe adapted function.private UnaryFunction<? super L,? extends G>UnaryCompositeBinaryFunction.Helper. gThe adapted left function.private UnaryFunction<? super L,? extends G>UnaryCompositeBinaryPredicate.Helper. gleft UnaryFunction.private UnaryFunction<? super R,? extends H>UnaryCompositeBinaryFunction.Helper. hThe adapted right function.private UnaryFunction<? super R,? extends H>UnaryCompositeBinaryPredicate.Helper. hright UnaryFunction.private UnaryFunction<? super A,? extends X>CompositeUnaryFunction.Helper. precedingThe first evaluator function.private UnaryFunction<? super A,? extends T>ConditionalUnaryFunction. thenFuncthe function executed if the condition is satisfied.Methods in org.apache.commons.functor.core.composite that return UnaryFunction Modifier and Type Method Description static <A,T>
UnaryFunction<A,T>Conditional. function(UnaryPredicate<? super A> q, UnaryFunction<? super A,? extends T> r, UnaryFunction<? super A,? extends T> s)Create a conditional UnaryFunction.Methods in org.apache.commons.functor.core.composite with parameters of type UnaryFunction Modifier and Type Method Description static <L,R,G,H,T>
UnaryCompositeBinaryFunction<L,R,T>Composite. function(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a compositeBinaryFunction. static <A,T>
CompositeUnaryFunction<A,T>Composite. function(UnaryFunction<? super A,? extends T> f)Create a composite UnaryFunction.static <A,X,T>
CompositeUnaryFunction<A,T>Composite. function(UnaryFunction<? super X,? extends T> f, UnaryFunction<? super A,? extends X> g)Create a composite UnaryFunction.static <A,T>
UnaryFunction<A,T>Conditional. function(UnaryPredicate<? super A> q, UnaryFunction<? super A,? extends T> r, UnaryFunction<? super A,? extends T> s)Create a conditional UnaryFunction.<P> CompositeUnaryFunction<P,T>CompositeUnaryFunction. of(UnaryFunction<? super P,? extends A> preceding)Fluently obtain a CompositeUnaryFunction that is "this function" applied to the specified preceding function.<P> CompositeUnaryPredicate<P>CompositeUnaryPredicate. of(UnaryFunction<? super P,? extends A> preceding)Fluently obtain a CompositeUnaryPredicate that applies our predicate to the result of the preceding function.<T> CompositeUnaryProcedure<T>CompositeUnaryProcedure. of(UnaryFunction<? super T,? extends A> preceding)Fluently obtain a CompositeUnaryProcedure that runs our procedure against the result of the preceding function.static <L,R,G,H>
UnaryCompositeBinaryPredicate<L,R>Composite. predicate(BinaryPredicate<? super G,? super H> p, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a composite BinaryPredicate.static <A,T>
CompositeUnaryPredicate<A>Composite. predicate(UnaryPredicate<? super T> predicate, UnaryFunction<? super A,? extends T> function)Create a composite UnaryPredicate.static <A,T>
CompositeUnaryProcedure<A>Composite. procedure(UnaryProcedure<? super T> procedure, UnaryFunction<? super A,? extends T> function)Create a composite UnaryProcedure.Constructors in org.apache.commons.functor.core.composite with parameters of type UnaryFunction Constructor Description CompositeUnaryFunction(UnaryFunction<? super A,? extends T> function)Create a new CompositeUnaryFunction.CompositeUnaryFunction(UnaryFunction<? super X,? extends T> following, UnaryFunction<? super A,? extends X> preceding)Creates a newCompositeUnaryFunctioninstance given the input functions.ConditionalUnaryFunction(UnaryPredicate<? super A> ifPred, UnaryFunction<? super A,? extends T> thenFunc, UnaryFunction<? super A,? extends T> elseFunc)Create a new ConditionalUnaryFunction.Helper(UnaryFunction<? super X,? extends T> following, UnaryFunction<? super A,? extends X> preceding)Create a new Helper.Helper(BinaryFunction<? super L,? super R,? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new Helper.Helper(Function<? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new Helper.Helper(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new Helper.Helper(BinaryPredicate<? super G,? super H> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new Helper.TransformedBinaryFunction(BinaryFunction<? super L,? super R,? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new TransformedBinaryFunction.TransformedFunction(Function<? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new TransformedFunction.UnaryCompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new UnaryCompositeBinaryFunction.UnaryCompositeBinaryPredicate(BinaryPredicate<? super G,? super H> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new UnaryCompositeBinaryPredicate. -
Uses of UnaryFunction in org.apache.commons.functor.generator
Fields in org.apache.commons.functor.generator declared as UnaryFunction Modifier and Type Field Description private UnaryFunction<? super I,? extends E>TransformedGenerator. funcThe UnaryFunction to apply to each element.Methods in org.apache.commons.functor.generator with parameters of type UnaryFunction Modifier and Type Method Description <T> TBaseGenerator. to(UnaryFunction<Generator<? extends E>,? extends T> transformer)Transforms this generator using the passed in transformer.<Z> ZGenerator. to(UnaryFunction<Generator<? extends E>,? extends Z> transformer)Transforms this generator using the passed in transformer.Constructors in org.apache.commons.functor.generator with parameters of type UnaryFunction Constructor Description TransformedGenerator(Generator<? extends I> wrapped, UnaryFunction<? super I,? extends E> func)Create a new TransformedGenerator. -
Uses of UnaryFunction in org.apache.commons.functor.generator.util
Classes in org.apache.commons.functor.generator.util that implement UnaryFunction Modifier and Type Class Description classCollectionTransformer<E>Transforms a generator into a collection.
-