Package org.thymeleaf.expression
Class Objects
- Object
-
- org.thymeleaf.expression.Objects
-
public final class Objects extends Object
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
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description Objects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T[]
arrayNullSafe(T[] target, T defaultValue)
<T> List<T>
listNullSafe(List<T> target, T defaultValue)
<T> T
nullSafe(T target, T defaultValue)
<T> Set<T>
setNullSafe(Set<T> target, T defaultValue)
-