Class CollectionSubject.Has<T,​C extends Collection<T>>

    • Constructor Detail

      • Has

        public Has()
    • Method Detail

      • anyFrom

        @Deprecated
        public void anyFrom​(Iterable<T> col)
        Deprecated.
        Use IterableSubject#containsAnyIn(Iterable) instead.
        Attests that a Collection contains at least one of the objects contained in the provided collection or fails.
      • allOf

        @Deprecated
        public Ordered allOf​(T first)
        Deprecated.
        Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
      • allFrom

        @Deprecated
        public Ordered allFrom​(Iterable<T> required)
        Deprecated.
        Use IterableSubject#containsAllIn(Iterable) instead.
        Attests that a Collection contains at least all of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters.
      • exactly

        public Ordered exactly​(T first)
        Attests that a Collection contains at all of the provided objects and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unless inOrder() is explicitly called.
      • exactly

        public Ordered exactly​(T first,
                               T second,
                               T... rest)
        Attests that a Collection contains at all of the provided objects and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unless inOrder() is explicitly called.
      • exactlyAs

        public Ordered exactlyAs​(Iterable<T> required)
        Attests that a Collection contains at all of the objects contained in the provided collection and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unless inOrder() is explicitly called.
      • noneOf

        @Deprecated
        public void noneOf​(T first)
        Deprecated.
        Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
      • noneFrom

        @Deprecated
        public void noneFrom​(Iterable<T> excluded)
        Deprecated.
        Use IterableSubject#containsNoneIn(Iterable) instead.
        Attests that a Collection contains at none of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters.