Package org.keycloak.common.util
Class CollectionUtil
- java.lang.Object
-
- org.keycloak.common.util.CollectionUtil
-
public class CollectionUtil extends Object
- Author:
- Jeroen Rosenberg
-
-
Constructor Summary
Constructors Constructor Description CollectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> boolean
collectionEquals(Collection<T> col1, Collection<T> col2)
static <T> Set<T>
intersection(Collection<T> col1, Collection<T> col2)
static boolean
isEmpty(Collection<?> collection)
static boolean
isNotEmpty(Collection<?> collection)
static String
join(Collection<String> strings)
static String
join(Collection<String> strings, String separator)
-
-
-
Method Detail
-
join
public static String join(Collection<String> strings)
-
join
public static String join(Collection<String> strings, String separator)
-
collectionEquals
public static <T> boolean collectionEquals(Collection<T> col1, Collection<T> col2)
-
isEmpty
public static boolean isEmpty(Collection<?> collection)
-
isNotEmpty
public static boolean isNotEmpty(Collection<?> collection)
-
intersection
public static <T> Set<T> intersection(Collection<T> col1, Collection<T> col2)
-
-