be.maximvdw.placeholderapi.internal.utils.ListUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MVdWPlaceholderAPI Show documentation
Show all versions of MVdWPlaceholderAPI Show documentation
MVdW Placeholder API is an API that allows you to register placeholders to all MVdW Placeholder plugins at once.
The newest version!
package be.maximvdw.placeholderapi.internal.utils;
import java.util.List;
public class ListUtils {
public static String[] listToArray(List list) {
return list.toArray(new String[list.size()]);
}
public static Boolean[] booleanListToArray(List list) {
return list.toArray(new Boolean[list.size()]);
}
public static Integer[] integerListToArray(List list) {
return list.toArray(new Integer[list.size()]);
}
}