Package org.thymeleaf.util
Class SetUtils
- Object
-
- org.thymeleaf.util.SetUtils
-
public final class SetUtils extends Object
- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontains(Set<?> target, Object element)static booleancontainsAll(Set<?> target, Object[] elements)static booleancontainsAll(Set<?> target, Collection<?> elements)static booleanisEmpty(Set<?> target)static <X> Set<X>singletonSet(X element)static intsize(Set<?> target)static Set<?>toSet(Object target)
-
-
-
Method Detail
-
size
public static int size(Set<?> target)
-
isEmpty
public static boolean isEmpty(Set<?> target)
-
containsAll
public static boolean containsAll(Set<?> target, Collection<?> elements)
-
singletonSet
public static <X> Set<X> singletonSet(X element)
-
-