com.danube.scrumworks.api2
Class APIUtils

java.lang.Object
  extended by com.danube.scrumworks.api2.APIUtils

public final class APIUtils
extends java.lang.Object

Utility methods for the SOAP APIs.


Constructor Summary
APIUtils()
           
 
Method Summary
static
<T> java.util.List<T>
nullToEmptyList(java.util.List<T> list)
          Returns an empty list if the input is null, otherwise returns the input.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APIUtils

public APIUtils()
Method Detail

nullToEmptyList

public static <T> java.util.List<T> nullToEmptyList(java.util.List<T> list)
Returns an empty list if the input is null, otherwise returns the input.

Type Parameters:
T - the type of the list elements.
Parameters:
list - the input list.
Returns:
the result.