Top Description Constructors Methods
org.apache.commons.collections4.functors

pack-priv Class FunctorUtils

extends Object
Class Inheritance
Imports
java.util.Collection, org.apache.commons.collections4.Closure, .Predicate, .Transformer

Internal utilities for functors.
Since
3.0

Constructor Summary

AccessConstructor and Description
private
FunctorUtils()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> Predicate<T>
coerce(final Predicate<? super T> predicate)

<?A<?

pack-priv static <T> Closure<T>
coerce(final Closure<? super T> closure)

<?A<?

pack-priv static <I, O> Transformer<I, O>
coerce(final Transformer<? super I, ? extends O> transformer)

<?A<?

pack-priv static <T> Predicate<T>[]

Returns:

the cloned predicates
copy
(final Predicate<? super T>...
the predicates to copy
predicates
)

Clone the predicates to ensure that the internal reference can't be messed with.

pack-priv static <E> Closure<E>[]

Returns:

the cloned closures
copy
(final Closure<? super E>...
the closures to copy
closures
)

Clone the closures to ensure that the internal reference can't be messed with.

pack-priv static <I, O> Transformer<I, O>[]

Returns:

a clone of the transformers
copy
(final Transformer<? super I, ? extends O>...
the transformers to copy
transformers
)

Copy method

pack-priv static void
validate(final Predicate<?>...
the predicates to validate
predicates
)

Validate the predicates to ensure that all is well.

pack-priv static <T> Predicate<? super T>[]

Returns:

predicate array
validate
(final Collection<? extends Predicate<? super T>>
the predicates to validate
predicates
)

Validate the predicates to ensure that all is well.

pack-priv static void
validate(final Closure<?>...
the closures to validate
closures
)

Validate the closures to ensure that all is well.

pack-priv static void
validate(final Transformer<?, ?>...
the transformers to validate
transformers
)

Validate method

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FunctorUtilsback to summary
private FunctorUtils()

Restricted constructor.

Method Detail

coerceback to summary
pack-priv static <T> Predicate<T> coerce(final Predicate<? super T> predicate)

<?A<? <?v<?e<?r<?y<? <?s<?i<?m<?p<?l<?e<? <?m<?e<?t<?h<?o<?d<? <?t<?h<?a<?t<? <?c<?o<?e<?r<?c<?e<?s<? <?P<?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p<?t<?"<? <?@<?p<?a<?r<?a<?m<? <?p<?r<?e<?d<?i<?c<?a<?t<?e<? <?t<?h<?e<? <?p<?r<?e<?d<?i<?c<?a<?t<?e<? <?t<?o<? <?c<?o<?e<?r<?c<?e<?.<? <?@<?r<?e<?t<?u<?r<?n<? <?t<?h<?e<? <?c<?o<?e<?r<?c<?e<?d<? <?p<?r<?e<?d<?i<?c<?a<?t<?e<?.<?

Annotations
@SuppressWarnings:unchecked
coerceback to summary
pack-priv static <T> Closure<T> coerce(final Closure<? super T> closure)

<?A<? <?v<?e<?r<?y<? <?s<?i<?m<?p<?l<?e<? <?m<?e<?t<?h<?o<?d<? <?t<?h<?a<?t<? <?c<?o<?e<?r<?c<?e<?s<? <?C<?l<?o<?s<?u<?r<?e<?<??<? <?s<?u<?p<?e<?r<? <?T<?&<?g<?t<?;<? <?t<?o<? <?C<?l<?o<?s<?u<?r<?e<?&<?l<?t<?;<?T<?&<?g<?t<?;<?.<? <?<?p<?><?T<?h<?i<?s<? <?m<?e<?t<?h<?o<?d<? <?e<?x<?i<?s<?t<?s<? <?s<?i<?m<?p<?l<?y<? <?a<?s<? <?c<?e<?n<?t<?r<?a<?l<?i<?s<?e<?d<? <?d<?o<?c<?u<?m<?e<?n<?t<?a<?t<?i<?o<?n<? <?a<?n<?d<? <?a<?t<?o<?m<?i<?c<? <?u<?n<?c<?h<?e<?c<?k<?e<?d<? <?w<?a<?r<?n<?i<?n<?g<? <?s<?u<?p<?p<?r<?e<?s<?s<?i<?o<?n<?.<? <? <?@<?p<?a<?r<?a<?m<? <?&<?l<?t<?;<?T<?&<?g<?t<?;<? <?t<?h<?e<? <?t<?y<?p<?e<? <?o<?f<? <?o<?b<?j<?e<?c<?t<? <?t<?h<?e<? <?r<?e<?t<?u<?r<?n<?e<?d<? <?c<?l<?o<?s<?u<?r<?e<? <?s<?h<?o<?u<?l<?d<? <?"<?a<?c<?c<?e<?p<?t<?"<? <?@<?p<?a<?r<?a<?m<? <?c<?l<?o<?s<?u<?r<?e<? <?t<?h<?e<? <?c<?l<?o<?s<?u<?r<?e<? <?t<?o<? <?c<?o<?e<?r<?c<?e<?.<? <?@<?r<?e<?t<?u<?r<?n<? <?t<?h<?e<? <?c<?o<?e<?r<?c<?e<?d<? <?c<?l<?o<?s<?u<?r<?e<?.<?

Annotations
@SuppressWarnings:unchecked
coerceback to summary
pack-priv static <I, O> Transformer<I, O> coerce(final Transformer<? super I, ? extends O> transformer)

<?A<? <?v<?e<?r<?y<? <?s<?i<?m<?p<?l<?e<? <?m<?e<?t<?h<?o<?d<? <?t<?h<?a<?t<? <?c<?o<?e<?r<?c<?e<?s<? <?T<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<?<??<? <?s<?u<?p<?e<?r<? <?I<?,<? <??<? <?e<?x<?t<?e<?n<?d<?s<? <?O<?><? <?t<?o<? <?T<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<?<?I<?,<? <?O<?><?.<? <?<?p<?><?T<?h<?i<?s<? <?m<?e<?t<?h<?o<?d<? <?e<?x<?i<?s<?t<?s<? <?s<?i<?m<?p<?l<?y<? <?a<?s<? <?c<?e<?n<?t<?r<?a<?l<?i<?s<?e<?d<? <?d<?o<?c<?u<?m<?e<?n<?t<?a<?t<?i<?o<?n<? <?a<?n<?d<? <?a<?t<?o<?m<?i<?c<? <?u<?n<?c<?h<?e<?c<?k<?e<?d<? <?w<?a<?r<?n<?i<?n<?g<? <?s<?u<?p<?p<?r<?e<?s<?s<?i<?o<?n<?.<? <? <?@<?p<?a<?r<?a<?m<? <?<?I<?><? <?t<?h<?e<? <?t<?y<?p<?e<? <?o<?f<? <?o<?b<?j<?e<?c<?t<? <?t<?h<?e<? <?r<?e<?t<?u<?r<?n<?e<?d<? <?t<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<? <?s<?h<?o<?u<?l<?d<? <?"<?a<?c<?c<?e<?p<?t<?"<? <?@<?p<?a<?r<?a<?m<? <?<?O<?><? <?t<?h<?e<? <?t<?y<?p<?e<? <?o<?f<? <?o<?b<?j<?e<?c<?t<? <?t<?h<?e<? <?r<?e<?t<?u<?r<?n<?e<?d<? <?t<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<? <?s<?h<?o<?u<?l<?d<? <?"<?p<?r<?o<?d<?u<?c<?e<?"<? <?@<?p<?a<?r<?a<?m<? <?t<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<? <?t<?h<?e<? <?t<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<? <?t<?o<? <?c<?o<?e<?r<?c<?e<?.<? <?@<?r<?e<?t<?u<?r<?n<? <?t<?h<?e<? <?c<?o<?e<?r<?c<?e<?d<? <?t<?r<?a<?n<?s<?f<?o<?r<?m<?e<?r<?.<?

Annotations
@SuppressWarnings:unchecked
copyback to summary
pack-priv static <T> Predicate<T>[] copy(final Predicate<? super T>... predicates)

Clone the predicates to ensure that the internal reference can't be messed with. Due to the Predicate#evaluate(T) method, Predicate is able to be coerced to Predicate without casting issues.

Parameters
predicates:Predicate<? super T>[]

the predicates to copy

Returns:Predicate<T>[]

the cloned predicates

Annotations
@SuppressWarnings:unchecked
copyback to summary
pack-priv static <E> Closure<E>[] copy(final Closure<? super E>... closures)

Clone the closures to ensure that the internal reference can't be messed with.

Parameters
closures:Closure<? super E>[]

the closures to copy

Returns:Closure<E>[]

the cloned closures

Annotations
@SuppressWarnings:unchecked
copyback to summary
pack-priv static <I, O> Transformer<I, O>[] copy(final Transformer<? super I, ? extends O>... transformers)

Copy method

Parameters
transformers:Transformer<? super I, ? extends O>[]

the transformers to copy

Returns:Transformer<I, O>[]

a clone of the transformers

Annotations
@SuppressWarnings:unchecked
validateback to summary
pack-priv static void validate(final Predicate<?>... predicates)

Validate the predicates to ensure that all is well.

Parameters
predicates:Predicate<?>[]

the predicates to validate

validateback to summary
pack-priv static <T> Predicate<? super T>[] validate(final Collection<? extends Predicate<? super T>> predicates)

Validate the predicates to ensure that all is well.

Parameters
predicates:Collection<? extends Predicate<? super T>>

the predicates to validate

Returns:Predicate<? super T>[]

predicate array

validateback to summary
pack-priv static void validate(final Closure<?>... closures)

Validate the closures to ensure that all is well.

Parameters
closures:Closure<?>[]

the closures to validate

validateback to summary
pack-priv static void validate(final Transformer<?, ?>... transformers)

Validate method

Parameters
transformers:Transformer<?, ?>[]

the transformers to validate