Class CollectionMatcher


  • public class CollectionMatcher
    extends Object
    • 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)