Package at.meks.validation.matcher
Class CollectionMatcher
- java.lang.Object
-
- at.meks.validation.matcher.CollectionMatcher
-
public class CollectionMatcher extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> booleancontains(Collection<T> collection, T firstContained, T... furtherContained)static <T> booleancontainsOnly(Collection<T> collection, T firstContained, T... furtherContained)static <T> booleanisEmpty(Collection<T> collection)static booleanisNotEmpty(Collection<?> collection)
-
-
-
Method Detail
-
isEmpty
public static <T> boolean isEmpty(Collection<T> collection)
-
isNotEmpty
public static boolean isNotEmpty(Collection<?> collection)
-
containsOnly
@SafeVarargs public static <T> boolean containsOnly(Collection<T> collection, T firstContained, T... furtherContained)
-
contains
@SafeVarargs public static <T> boolean contains(Collection<T> collection, T firstContained, T... furtherContained)
-
-