java.lang.Object
org.omnifaces.el.functions.Objects
Collection of EL functions for objects.
- Author:
- Bauke Scholtz
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectReturns the first non-nullobject from the provided two objects.static booleanisInstance(String className, Object object) Returnstrueif given object is an instance of the class as identified by given class name.
-
Method Details
-
coalesce
Returns the first non-nullobject from the provided two objects. So, if the first object is notnull, then it will be returned, otherwise the second object will be returned.- Parameters:
first- The first object.second- The second object.- Returns:
- The first non-
nullobject from the provided two objects.
-
isInstance
Returnstrueif given object is an instance of the class as identified by given class name.- Parameters:
className- Fully qualified class name of the class for which a class object needs to be created.object- The object to be checked if it is an instance of the created class object.- Returns:
trueif given object is an instance of the class as identified by given class name.- Since:
- 3.0
-