Class Sets


  • public final class Sets
    extends Object

    Expression Object for performing set operations inside Thymeleaf Standard Expressions.

    An object of this class is usually available in variable evaluation expressions with the name #sets.

    Since:
    1.0
    Author:
    Daniel Fernández
    • Constructor Detail

      • Sets

        public Sets()
    • Method Detail

      • toSet

        public Set<?> toSet​(Object target)
      • size

        public int size​(Set<?> target)
      • isEmpty

        public boolean isEmpty​(Set<?> target)
      • contains

        public boolean contains​(Set<?> target,
                                Object element)
      • containsAll

        public boolean containsAll​(Set<?> target,
                                   Object[] elements)
      • containsAll

        public boolean containsAll​(Set<?> target,
                                   Collection<?> elements)