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:
Thomas Neidhart 2013-05-05 15:37:41 +00:00
parent ef70de545e
commit ace5ba00f7
5 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}