Thymeleaf is a Java template for application written in Java. In this article, we will present utility methods for
Objects in general. The implementation of
Object utility methods can be found in the official Thymeleaf GitHub Repository.
2. Available utility methods for
Thymeleaf provides several methods to check if the given object is null.
||Also works with arrays, lists or sets|
In this article, we presented Thymeleaf utility methods for
Objects in general. Any given object can be check with the provided method and if it is null the
default String will be presented. This inline method should save a lot of work.