Class Objects


  • public final class Objects
    extends 

    Expression 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
    Author:
    Daniel Fernández
    • 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> <T> <T> target, T defaultValue)  
      <T> T nullSafe​(T target, T defaultValue)  
      <T> <T> <T> target, T defaultValue)  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Constructor Detail

      • Objects

        public Objects()
    • Method Detail

      • nullSafe

        public <T> T nullSafe​(T target,
                              T defaultValue)
      • arrayNullSafe

        public <T> T[] arrayNullSafe​(T[] target,
                                     T defaultValue)
      • listNullSafe

        public <T> <T> listNullSafe​(<T> target,
                                        T defaultValue)
      • setNullSafe

        public <T> <T> setNullSafe​(<T> target,
                                      T defaultValue)