Use varargs parameter instead of array.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ef70de545e
commit
ace5ba00f7
|
@ -39,7 +39,7 @@ public abstract class AbstractQuantifierPredicate<T> implements Predicate<T>, Pr
|
|||
*
|
||||
* @param predicates the predicates to check, not cloned, not null
|
||||
*/
|
||||
public AbstractQuantifierPredicate(final Predicate<? super T> ... predicates) {
|
||||
public AbstractQuantifierPredicate(final Predicate<? super T>... predicates) {
|
||||
iPredicates = predicates;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public final class AllPredicate<T> extends AbstractQuantifierPredicate<T> implem
|
|||
* @throws IllegalArgumentException if the predicates array is null
|
||||
* @throws IllegalArgumentException if any predicate in the array is null
|
||||
*/
|
||||
public static <T> Predicate<T> allPredicate(final Predicate<? super T> ... predicates) {
|
||||
public static <T> Predicate<T> allPredicate(final Predicate<? super T>... predicates) {
|
||||
FunctorUtils.validate(predicates);
|
||||
if (predicates.length == 0) {
|
||||
return truePredicate();
|
||||
|
@ -94,7 +94,7 @@ public final class AllPredicate<T> extends AbstractQuantifierPredicate<T> implem
|
|||
*
|
||||
* @param predicates the predicates to check, not cloned, not null
|
||||
*/
|
||||
public AllPredicate(final Predicate<? super T> ... predicates) {
|
||||
public AllPredicate(final Predicate<? super T>... predicates) {
|
||||
super(predicates);
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ public final class AnyPredicate<T> extends AbstractQuantifierPredicate<T> implem
|
|||
*
|
||||
* @param predicates the predicates to check, not cloned, not null
|
||||
*/
|
||||
public AnyPredicate(final Predicate<? super T>[] predicates) {
|
||||
public AnyPredicate(final Predicate<? super T>... predicates) {
|
||||
super(predicates);
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ public final class NonePredicate<T> extends AbstractQuantifierPredicate<T> imple
|
|||
*
|
||||
* @param predicates the predicates to check, not cloned, not null
|
||||
*/
|
||||
public NonePredicate(final Predicate<? super T>[] predicates) {
|
||||
public NonePredicate(final Predicate<? super T>... predicates) {
|
||||
super(predicates);
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ public final class OnePredicate<T> extends AbstractQuantifierPredicate<T> implem
|
|||
*
|
||||
* @param predicates the predicates to check, not cloned, not null
|
||||
*/
|
||||
public OnePredicate(final Predicate<? super T>[] predicates) {
|
||||
public OnePredicate(final Predicate<? super T>... predicates) {
|
||||
super(predicates);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue