All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.maximvdw.placeholderapi.internal.utils.ListUtils Maven / Gradle / Ivy

Go to download

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()]);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy