Class Lists

java.lang.Object
org.forgerock.http.util.Lists

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

    • 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.