Class ArrayUtils


  • public class ArrayUtils
    extends Object
    • Method Detail

      • asList

        public static List<Long> asList​(long... elements)
        Copies an array of primitive longs while boxing them at the same time, and then converting into a list. Can't use Arrays.asList(Object[]) directly as that will create a list of arrays instead.
        Parameters:
        elements - The array of primitive longs to convert to a list
        Returns:
        A list of boxed long values