Uses of Interface
org.apache.commons.functor.UnaryFunction
Packages that use UnaryFunction
Package
Description
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.
Contains code related to Generators.
Contains utility code for Generators.
-
Uses of UnaryFunction in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement UnaryFunctionModifier and TypeClassDescriptionfinal classAdapts a BinaryFunction as a UnaryFunction by sending the same argument to both sides of the BinaryFunction.final classAdapts aFunctionto theUnaryFunctioninterface by ignoring the unary argument.final classLeftBoundFunction<A,T> Adapts aBinaryFunctionto theUnaryFunctioninterface using a constant left-side argument.final classRightBoundFunction<A,T> Adapts aBinaryFunctionto theUnaryFunctioninterface using a constant right-side argument.final classAdapts aUnaryPredicateto theUnaryFunctioninterface.final classFields in org.apache.commons.functor.adapter declared as UnaryFunctionModifier and TypeFieldDescriptionprivate final UnaryFunction<Object, ? extends T> BoundFunction.functionTheUnaryFunctionI'm wrapping.private final UnaryFunction<? super R, ? extends T> IgnoreLeftFunction.functionTheUnaryFunctionI'm wrapping.private final UnaryFunction<? super L, ? extends T> IgnoreRightFunction.functionTheUnaryFunctionI'm wrapping.private final UnaryFunction<? super A, Boolean> UnaryFunctionUnaryPredicate.functionTheUnaryFunctionI'm wrapping.private final UnaryFunction<? super A, ?> UnaryFunctionUnaryProcedure.functionTheUnaryFunctionI'm wrapping.Methods in org.apache.commons.functor.adapter that return UnaryFunctionModifier and TypeMethodDescriptionstatic <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 UnaryFunctionModifier and TypeMethodDescriptionstatic <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, 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 UnaryFunctionModifierConstructorDescription<A>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, 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 -
Uses of UnaryFunction in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement UnaryFunctionModifier and TypeClassDescriptionclassFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.Classes in org.apache.commons.functor.core.algorithm that implement interfaces with type arguments of type UnaryFunctionModifier and TypeClassDescriptionfinal classImplements an in-place transformation of a ListIterator's contents.Methods in org.apache.commons.functor.core.algorithm with parameters of type UnaryFunctionModifier and TypeMethodDescriptionvoidInPlaceTransform.run(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 UnaryFunctionModifier and TypeClassDescriptionfinal 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 UnaryFunctionModifier and TypeFieldDescriptionprivate final 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 UnaryFunctionModifier and TypeMethodDescriptionstatic <E> Iterator<?> TransformedIterator.maybeTransform(Iterator<? extends E> iter, UnaryFunction<? super E, ?> func) Get an Iterator instance that may be transformed.static <E,T> Iterator <T> TransformedIterator.transform(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 UnaryFunctionModifierConstructorDescriptionTransformedIterator(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 UnaryFunctionModifier and TypeMethodDescriptionstatic <T extends Comparable<?>>
UnaryFunction<T, T> Max.instance(T right) Get a Max UnaryFunction.static <T extends 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 UnaryFunctionModifier and TypeClassDescriptionclassAUnaryFunctionrepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.private static classEncapsulates a double function evaluation.final classAUnaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).Fields in org.apache.commons.functor.core.composite declared as UnaryFunctionModifier and TypeFieldDescriptionprivate final 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 final 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 final UnaryFunction<? super A, ? extends T> ConditionalUnaryFunction.thenFuncthe function executed if the condition is satisfied.Methods in org.apache.commons.functor.core.composite that return UnaryFunctionModifier and TypeMethodDescriptionstatic <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 UnaryFunctionModifier and TypeMethodDescriptionstatic <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.final <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 UnaryFunctionModifierConstructorDescriptionCompositeUnaryFunction(UnaryFunction<? super A, ? extends T> function) Create a new CompositeUnaryFunction.private <X>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.privateHelper(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new Helper.privateCreate 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.<X>TransformedBinaryFunction(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new TransformedBinaryFunction.<X>TransformedFunction(Function<? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new TransformedFunction.<G,H> 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.<G,H> 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 UnaryFunctionModifier and TypeFieldDescriptionprivate final UnaryFunction<? super I, ? extends E> TransformedGenerator.funcThe UnaryFunction to apply to each element.Methods in org.apache.commons.functor.generator with parameters of type UnaryFunctionModifier and TypeMethodDescriptionfinal <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 UnaryFunctionModifierConstructorDescriptionTransformedGenerator(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 UnaryFunctionModifier and TypeClassDescriptionclassTransforms a generator into a collection.