Package org.apache.webbeans.util
Class Asserts
java.lang.Object
org.apache.webbeans.util.Asserts
Simple utility classes with some assertions methods.
- Since:
- 1.0
- Author:
- Gurkan Erdogdu
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertNotNull(Object obj) Check the object is null or notstatic voidassertNotNull(Object obj, String parameterName) Check the object is null or notstatic voidnullCheckForClass(Class<?> clazz) Null check for class parameter.static voidnullCheckForClass(Class<?> clazz, String message) Null check for class parameter.static voidnullCheckForMethod(Method method) Null check for method parameter.
-
Field Details
-
PARAM_NAME_WEBBEANSCONTEXT
- See Also:
-
PARAM_NAME_ANNOTATION
- See Also:
-
-
Method Details
-
assertNotNull
Check the object is null or not- Parameters:
obj- null check objectparameterName- name of parameter which may not be null
-
assertNotNull
Check the object is null or not- Parameters:
obj- null check object
-
nullCheckForClass
Null check for class parameter.- Parameters:
clazz- parameter
-
nullCheckForClass
Null check for class parameter.- Parameters:
clazz- parameter
-
nullCheckForMethod
Null check for method parameter.- Parameters:
method- parameter
-