Class ObjectUtils


  • public final class ObjectUtils
    extends 
    Since:
    1.0
    Author:
    Daniel Fernández
    • 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 the IStandardConversionService implementation corresponding to the dialect you are using or the methods in EvaluationUtils. Will be removed in 3.0.
        Parameters:
        condition - condition
        Returns:
        the result
      • evaluateAsNumber

        public static  evaluateAsNumber​( object)
        Deprecated.
        since 2.1, you should use the IStandardConversionService implementation corresponding to the dialect you are using or the methods in EvaluationUtils. Will be removed in 3.0.
        Parameters:
        object - object
        Returns:
        the result
      • convertToIterable

        public static <> convertToIterable​( value)
        Deprecated.
        since 2.1, you should use the IStandardConversionService implementation corresponding to the dialect you are using or the methods in EvaluationUtils. Will be removed in 3.0.
        Parameters:
        value - value
        Returns:
        the result
      • convertToList

        public static <> convertToList​( value)
        Deprecated.
        since 2.1, you should use the IStandardConversionService implementation corresponding to the dialect you are using or the methods in EvaluationUtils. Will be removed in 3.0.
        Parameters:
        value - value
        Returns:
        the result
      • convertToArray

        public static [] convertToArray​( value)
        Deprecated.
        since 2.1, you should use the IStandardConversionService implementation corresponding to the dialect you are using or the methods in EvaluationUtils. Will be removed in 3.0.
        Parameters:
        value - value
        Returns:
        the result