org.thymeleaf.util
Class ObjectUtils

Object
  extended by org.thymeleaf.util.ObjectUtils

public final class ObjectUtils
extends Object

Since:
1.0
Author:
Daniel Fernández

Method Summary
static Object[] convertToArray(Object value)
           
static java.util.List<Object> convertToList(Object value)
           
static boolean evaluateAsBoolean(Object condition)
           
static java.math.BigDecimal evaluateAsNumber(Object object)
           
static
<T> T
nullSafe(T target, T defaultValue)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullSafe

public static <T> T nullSafe(T target,
                             T defaultValue)

evaluateAsBoolean

public static boolean evaluateAsBoolean(Object condition)

evaluateAsNumber

public static java.math.BigDecimal evaluateAsNumber(Object object)

convertToList

public static java.util.List<Object> convertToList(Object value)

convertToArray

public static Object[] convertToArray(Object value)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.