public class CollectionMatcher extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
contains(Collection<T> collection,
T firstContained,
T... furtherContained) |
static <T> boolean |
containsOnly(Collection<T> collection,
T firstContained,
T... furtherContained) |
static <T> boolean |
isEmpty(Collection<T> collection) |
static boolean |
isNotEmpty(Collection<?> collection) |
public static <T> boolean isEmpty(Collection<T> collection)
public static boolean isNotEmpty(Collection<?> collection)
@SafeVarargs public static <T> boolean containsOnly(Collection<T> collection, T firstContained, T... furtherContained)
@SafeVarargs public static <T> boolean contains(Collection<T> collection, T firstContained, T... furtherContained)
Copyright © 2020. All rights reserved.