Package org.thymeleaf.expression
Class Sets
- Object
-
- org.thymeleaf.expression.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 Summary
Constructors Constructor Description Sets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Set<?> target, Object element)
boolean
containsAll(Set<?> target, Object[] elements)
boolean
containsAll(Set<?> target, Collection<?> elements)
boolean
isEmpty(Set<?> target)
int
size(Set<?> target)
Set<?>
toSet(Object target)
-
-
-
Method Detail
-
size
public int size(Set<?> target)
-
isEmpty
public boolean isEmpty(Set<?> target)
-
containsAll
public boolean containsAll(Set<?> target, Collection<?> elements)
-
-