Class Lists


  • public final class Lists
    extends Object
    Provides helper methods for List.
    • Method Detail

      • asArrayOrNull

        public static String[] asArrayOrNull​(List<String> listOfStrings)
        Returns the given list content as an array, or null if the list is empty.
        Parameters:
        listOfStrings - list to be converted
        Returns:
        the given list content as an array, or null if the list is empty.