Class GeneratedUtils
java.lang.Object
edu.internet2.middleware.grouper.webservicesClient.util.GeneratedUtils
util methods for samples
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T[]
nonNull
(T[] array) make sure a array is non null.
-
Constructor Details
-
GeneratedUtils
public GeneratedUtils()
-
-
Method Details
-
nonNull
public static <T> T[] nonNull(T[] array) make sure a array is non null. If null, then return an empty array. Note: this will probably not work for primitive arrays (e.g. int[])- Type Parameters:
T
-- Parameters:
array
-- Returns:
- the list or empty list if null
-