org.buildobjects.process.Helper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jproc Show documentation
Show all versions of jproc Show documentation
Library for launching external processes and managing input and output.
package org.buildobjects.process;
import java.util.HashSet;
import java.util.Set;
import static java.util.Arrays.asList;
public class Helper {
public static Set asSet(T... elements) {
HashSet set = new HashSet();
set.addAll(asList(elements));
return set;
}
public static Set asSet(int[] elements) {
HashSet set = new HashSet();
for (int element : elements) {
set.add(element);
}
return set;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy