Removed ClosureUtils.chainedClosure(Closure, Closure) method as there is already one with vararg parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2edf0b06a9
commit
afcbced8ef
|
@ -185,22 +185,6 @@ public class ClosureUtils {
|
||||||
return asClosure(InvokerTransformer.<E, Object>invokerTransformer(methodName, paramTypes, args));
|
return asClosure(InvokerTransformer.<E, Object>invokerTransformer(methodName, paramTypes, args));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new Closure that calls two Closures, passing the result of
|
|
||||||
* the first into the second.
|
|
||||||
*
|
|
||||||
* @see org.apache.commons.collections4.functors.ChainedClosure
|
|
||||||
*
|
|
||||||
* @param <E> the type that the closure acts on
|
|
||||||
* @param closure1 the first closure
|
|
||||||
* @param closure2 the second closure
|
|
||||||
* @return the <code>chained</code> closure
|
|
||||||
* @throws IllegalArgumentException if either closure is null
|
|
||||||
*/
|
|
||||||
public static <E> Closure<E> chainedClosure(final Closure<? super E> closure1, final Closure<? super E> closure2) {
|
|
||||||
return ChainedClosure.<E>chainedClosure(closure1, closure2);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new Closure that calls each closure in turn, passing the
|
* Create a new Closure that calls each closure in turn, passing the
|
||||||
* result into the next closure.
|
* result into the next closure.
|
||||||
|
|
Loading…
Reference in New Issue