Class AbstractIterableMediator<E>

Type Parameters:
E - is the type of the elements of the argument of a AbstractIterableMediator.
Direct Known Subclasses:
IterableMediator, NamableIterableMediator

public abstract class AbstractIterableMediator<E> extends AbstractObjectMediator<Iterable<E>>
Author:
Silvan Wyss
  • Method Details

    • contains

      public void contains(Object element)
    • contains

      public void contains(Predicate<E> condition)
    • containsAll

      public void containsAll(Object[] elements)
    • containsAll

      public void containsAll(Iterable<Object> elements)
    • containsAsManyElementsAs

      public void containsAsManyElementsAs(Object[] array)
    • containsAsManyElementsAs

      public void containsAsManyElementsAs(Iterable<?> iterable)
    • containsDistinctNonNullElemensOnly

      public void containsDistinctNonNullElemensOnly()
    • containsEqualing

      public void containsEqualing(Object object)
    • containsExactly

      public void containsExactly(Object... elements)
    • containsExactlyEqualing

      public void containsExactlyEqualing(Object... elements)
    • containsExactlyInSameOrder

      public void containsExactlyInSameOrder(E... elements)
    • containsExactlyInSameOrder

      public void containsExactlyInSameOrder(Iterable<E> elements)
    • containsExactlyOneWithStringRepresentation

      public void containsExactlyOneWithStringRepresentation(String stringRepresentation)
      Parameters:
      stringRepresentation -
      Throws:
      RuntimeException - if the argument of the current IterableMediator does not contain an element with the given stringRepresentation.
    • containsOnce

      public void containsOnce(Object element)
      Parameters:
      element -
      Throws:
      RuntimeException - if the argument of the current IterableMediator does not contain the given element or contains the given element for several times.
    • hasElementCount

      public void hasElementCount(int elementCount)
      Parameters:
      elementCount -
      Throws:
      RuntimeException - if the given element count is negative.
      RuntimeException - if the argument of this container mediator contains less or more elements than the given element count says.
    • hasSameSizeAs

      public void hasSameSizeAs(double[] array)
      Parameters:
      array -
      Throws:
      RuntimeException - if the given array is null.
      RuntimeException - if the argument of this container mediator contains less or more elements than the given array.
    • isEmpty

      public void isEmpty()
      Throws:
      RuntimeException - if the argument of this container mediator is null.
      NonEmptyArgumentException - if the argument of this container mediator is empty.
    • isNotEmpty

      public void isNotEmpty()
      Throws:
      RuntimeException - if the argument of this container mediator is null.
      RuntimeException - if the argument of this container mediator is empty.