Package org.thymeleaf.expression
Class Objects
- java.lang.Object
-
- org.thymeleaf.expression.Objects
-
public final class Objects extends java.lang.ObjectExpression 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 Constructor Description Objects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T[]arrayNullSafe(T[] target, T defaultValue)<T> java.util.List<T>listNullSafe(java.util.List<T> target, T defaultValue)<T> TnullSafe(T target, T defaultValue)<T> java.util.Set<T>setNullSafe(java.util.Set<T> target, T defaultValue)
-
-
-
Method Detail
-
nullSafe
public <T> T nullSafe(T target, T defaultValue)
-
arrayNullSafe
public <T> T[] arrayNullSafe(T[] target, T defaultValue)
-
listNullSafe
public <T> java.util.List<T> listNullSafe(java.util.List<T> target, T defaultValue)
-
setNullSafe
public <T> java.util.Set<T> setNullSafe(java.util.Set<T> target, T defaultValue)
-
-