package com.github.qrokodial.sparkle.utilities.collections;

public class ArrayUtils {
    /**
     * Checks to see if an array contains any specified elements.
     *
     * @param haystack
     * @param needles
     * @return true if a match was found, false otherwise
     */
    public static boolean contains(Object[] haystack, Object... needles) {
        for (Object element : haystack) {
            for (Object needle : needles) {
                if (element.equals(needle)) {
                    return true;
                }
            }
        }

        return false;
    }
}

@@ -582,11 +582,375 @@
 e;%0A    %7D
+%0A%0A    /**%0A     * Gets the classes backing the array.%0A     *%0A     * @param objects%0A     * @return the class array%0A     */%0A    public static Class%5B%5D getTypes(Object... objects) %7B%0A        Class%5B%5D types = new Class%5Bobjects.length%5D;%0A%0A        for (int i = 0; i %3C objects.length; i++) %7B%0A            types%5Bi%5D = objects%5Bi%5D.getClass();%0A        %7D%0A%0A        return types;%0A    %7D
 %0A%7D%0A

Add ArrayUtils#getTypes