|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.identityconnectors.common.Assertions
public final class Assertions
Method Summary | ||
---|---|---|
static void |
blankCheck(String o,
String param)
Throws IllegalArgumentException if the parameter o
is null or blank. |
|
static String |
blankChecked(String o,
String param)
Throws IllegalArgumentException if the parameter o
is null or blank, otherwise returns the value of the
o parameter. |
|
static void |
nullCheck(Object o,
String param)
Throws NullPointerException if the parameter o is
null . |
|
static
|
nullChecked(T o,
String param)
Throws NullPointerException if the parameter o is
null , otherwise returns the value of the o parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void nullCheck(Object o, String param)
NullPointerException
if the parameter o
is
null
.
o
- check if the object is null
.param
- name of the parameter to check for null
.
NullPointerException
- if o
is null
and constructs a
message with the name of the parameter.public static <T> T nullChecked(T o, String param)
NullPointerException
if the parameter o
is
null
, otherwise returns the value of the o
parameter.
o
- check if the object is null
.param
- name of the parameter to check for null
.
o
parameter.
NullPointerException
- if o
is null
and constructs a
message with the name of the parameter.public static void blankCheck(String o, String param)
IllegalArgumentException
if the parameter o
is null
or blank.
o
- value to test for blank.param
- name of the parameter to check.public static String blankChecked(String o, String param)
IllegalArgumentException
if the parameter o
is null
or blank, otherwise returns the value of the
o
parameter.
o
- value to test for blank.param
- name of the parameter to check.
o
parameter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |