Package org.identityconnectors.common
Class Assertions
- java.lang.Object
 - 
- org.identityconnectors.common.Assertions
 
 
- 
public final class Assertions extends java.lang.Object 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidblankCheck(java.lang.String o, java.lang.String param)ThrowsIllegalArgumentExceptionif the parameteroisnullor blank.static java.lang.StringblankChecked(java.lang.String o, java.lang.String param)ThrowsIllegalArgumentExceptionif the parameteroisnullor blank, otherwise returns the value of theoparameter.static voidnullCheck(java.lang.Object o, java.lang.String param)ThrowsNullPointerExceptionif the parameteroisnull.static <T> TnullChecked(T o, java.lang.String param)ThrowsNullPointerExceptionif the parameteroisnull, otherwise returns the value of theoparameter. 
 - 
 
- 
- 
Method Detail
- 
nullCheck
public static void nullCheck(java.lang.Object o, java.lang.String param)ThrowsNullPointerExceptionif the parameteroisnull.- Parameters:
 o- check if the object isnull.param- name of the parameter to check fornull.- Throws:
 java.lang.NullPointerException- ifoisnulland constructs a message with the name of the parameter.
 
- 
nullChecked
public static <T> T nullChecked(T o, java.lang.String param)ThrowsNullPointerExceptionif the parameteroisnull, otherwise returns the value of theoparameter.- Type Parameters:
 T- the type of the value- Parameters:
 o- check if the object isnull.param- name of the parameter to check fornull.- Returns:
 - the value of the 
oparameter. - Throws:
 java.lang.NullPointerException- ifoisnulland constructs a message with the name of the parameter.- Since:
 - 1.1
 
 
- 
blankCheck
public static void blankCheck(java.lang.String o, java.lang.String param)ThrowsIllegalArgumentExceptionif the parameteroisnullor blank.- Parameters:
 o- value to test for blank.param- name of the parameter to check.
 
- 
blankChecked
public static java.lang.String blankChecked(java.lang.String o, java.lang.String param)ThrowsIllegalArgumentExceptionif the parameteroisnullor blank, otherwise returns the value of theoparameter.- Parameters:
 o- value to test for blank.param- name of the parameter to check.- Returns:
 - the value of the 
oparameter. - Since:
 - 1.1
 
 
 - 
 
 -