Package org.thymeleaf.expression
Class Objects
java.lang.Object
org.thymeleaf.expression.Objects
Expression Object for performing operations related to general object management inside Thymeleaf Standard Expressions.
An object of this class is usually available in variable evaluation expressions with the name
#objects.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T[]arrayNullSafe(T[] target, T defaultValue) <T> List<T> listNullSafe(List<T> target, T defaultValue) <T> TnullSafe(T target, T defaultValue) <T> Set<T> setNullSafe(Set<T> target, T defaultValue)
-
Constructor Details
-
Objects
public Objects()
-
-
Method Details
-
nullSafe
public <T> T nullSafe(T target, T defaultValue) -
arrayNullSafe
public <T> T[] arrayNullSafe(T[] target, T defaultValue) -
listNullSafe
-
setNullSafe
-