Package org.thymeleaf.util
Class ObjectUtils
- Object
-
- org.thymeleaf.util.ObjectUtils
-
public final class ObjectUtils extends Object
- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Object[]
convertToArray(Object value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static List<Object>
convertToIterable(Object value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static List<Object>
convertToList(Object value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static boolean
evaluateAsBoolean(Object condition)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static BigDecimal
evaluateAsNumber(Object object)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static <T> T
nullSafe(T target, T defaultValue)
-
-
-
Method Detail
-
nullSafe
public static <T> T nullSafe(T target, T defaultValue)
-
evaluateAsBoolean
@Deprecated public static boolean evaluateAsBoolean(Object condition)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
. Will be removed in 3.0.- Parameters:
condition
- condition- Returns:
- the result
-
evaluateAsNumber
@Deprecated public static BigDecimal evaluateAsNumber(Object object)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
. Will be removed in 3.0.- Parameters:
object
- object- Returns:
- the result
-
convertToIterable
@Deprecated public static List<Object> convertToIterable(Object value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
. Will be removed in 3.0.- Parameters:
value
- value- Returns:
- the result
-
convertToList
@Deprecated public static List<Object> convertToList(Object value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
. Will be removed in 3.0.- Parameters:
value
- value- Returns:
- the result
-
convertToArray
@Deprecated public static Object[] convertToArray(Object value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
. Will be removed in 3.0.- Parameters:
value
- value- Returns:
- the result
-
-