Package org.thymeleaf.util
Class ObjectUtils
-
- org.thymeleaf.util.ObjectUtils
-
public final class ObjectUtils extends
- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static []
value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static <>
value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static <>
value)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static boolean
condition)
Deprecated.since 2.1, you should use theIStandardConversionService
implementation corresponding to the dialect you are using or the methods inEvaluationUtils
.static
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
public static boolean evaluateAsBoolean( 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
public static evaluateAsNumber( 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
public static <> convertToIterable( 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
public static <> convertToList( 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
public static [] convertToArray( 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
-
-