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 boolean
contains(Set<?> target, Object element)
static boolean
containsAll(Set<?> target, Object[] elements)
static boolean
containsAll(Set<?> target, Collection<?> elements)
static boolean
isEmpty(Set<?> target)
static <X> Set<X>
singletonSet(X element)
static int
size(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)
-
-