public final class SetUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(Set<?> target,
Object element) |
static boolean |
containsAll(Set<?> target,
Collection<?> elements) |
static boolean |
containsAll(Set<?> target,
Object[] elements) |
static boolean |
isEmpty(Set<?> target) |
static <X> Set<X> |
singletonSet(X element) |
static int |
size(Set<?> target) |
static Set<?> |
toSet(Object target) |
public static int size(Set<?> target)
public static boolean isEmpty(Set<?> target)
public static boolean containsAll(Set<?> target, Collection<?> elements)
public static <X> Set<X> singletonSet(X element)
Copyright © 2016 The THYMELEAF team. All rights reserved.