Package org.identityconnectors.common
Class Assertions
java.lang.Object
org.identityconnectors.common.Assertions
- 
Method Summary
Modifier and TypeMethodDescriptionstatic voidblankCheck(String o, String param) static StringblankChecked(String o, String param) ThrowsIllegalArgumentExceptionif the parameteroisnullor blank, otherwise returns the value of theoparameter.static voidstatic <T> TnullChecked(T o, String param) ThrowsNullPointerExceptionif the parameteroisnull, otherwise returns the value of theoparameter. 
- 
Method Details
- 
nullCheck
- Parameters:
 o- check if the object isnull.param- name of the parameter to check fornull.- Throws:
 NullPointerException- ifoisnulland constructs a message with the name of the parameter.
 - 
nullChecked
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:
 NullPointerException- ifoisnulland constructs a message with the name of the parameter.- Since:
 - 1.1
 
 - 
blankCheck
- Parameters:
 o- value to test for blank.param- name of the parameter to check.
 - 
blankChecked
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
 
 
 -