org.testng.internal.collections.Ints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
package org.testng.internal.collections;
import java.util.ArrayList;
import java.util.List;
public final class Ints {
private Ints() {
throw new AssertionError();
}
public static List asList(int... ints) {
ArrayList result = new ArrayList<>(ints.length);
for (int val : ints) {
result.add(val);
}
return result;
}
}