Package org.forgerock.http.util
Class Lists
java.lang.Object
org.forgerock.http.util.Lists
Provides helper methods for
List.-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]asArrayOrNull(List<String> listOfStrings) Returns the given list content as an array, ornullif the list is empty.
-
Method Details
-
asArrayOrNull
Returns the given list content as an array, ornullif the list is empty.- Parameters:
listOfStrings- list to be converted- Returns:
- the given list content as an array, or
nullif the list is empty.
-