public final class

IterableMatchers

extends Object
java.lang.Object
   ↳ com.atlassian.jira.matchers.IterableMatchers

Class Overview

Some moar iterable matchers.

Summary

Public Methods
static <E> Matcher<Iterable<E>> containsAt(Matcher<E> itemMatcher, int at)
static <E> Matcher<Iterable<E>> containsAt(E item, int at)
static <E> Matcher<Iterable<E>> containsFirst(E item)
static <E> Matcher<Iterable<E>> containsFirst(Matcher<E> itemMatcher)
static <E> Matcher<Iterable<E>> containsLast(E item)
static <E> Matcher<Iterable<E>> containsLast(Matcher<E> itemMatcher)
static <E> Matcher<Iterable<E>> emptyIterable(Class<E> elementType)
static <E> Matcher<Iterable<E>> hasItemThat(Matcher<E> itemMatcher)
static <E> Matcher<Iterable<E>> hasItems(Class<E> itemType, E... items)
static <E> Matcher<Iterable<E>> hasItemsThat(Class<E> itemType, Matcher...<E> items)
static <E> Matcher<Iterable<E>> hasNoItemThat(Matcher<E> itemMatcher)
static <E> Matcher<Iterable<E>> hasSizeOfAtLeast(int expectedMinimumSize, Class<E> elementType)
static <E> Matcher<Iterable<E>> hasSizeOfAtLeast(int expectedMinimumSize)
static <E> Matcher<Iterable<E>> isSingleton(Matcher<E> singleElementMatcher)
static <E> Matcher<Iterable<E>> isSingleton(Class<E> type, E singleElement)
static <E> Matcher<Iterable<E>> isSingleton(E expectedElement)
static <E> Matcher<Iterable<E>> iterableWithSize(int expected, Class<E> elementType)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Matcher<Iterable<E>> containsAt (Matcher<E> itemMatcher, int at)

public static Matcher<Iterable<E>> containsAt (E item, int at)

public static Matcher<Iterable<E>> containsFirst (E item)

public static Matcher<Iterable<E>> containsFirst (Matcher<E> itemMatcher)

public static Matcher<Iterable<E>> containsLast (E item)

public static Matcher<Iterable<E>> containsLast (Matcher<E> itemMatcher)

public static Matcher<Iterable<E>> emptyIterable (Class<E> elementType)

public static Matcher<Iterable<E>> hasItemThat (Matcher<E> itemMatcher)

public static Matcher<Iterable<E>> hasItems (Class<E> itemType, E... items)

public static Matcher<Iterable<E>> hasItemsThat (Class<E> itemType, Matcher...<E> items)

public static Matcher<Iterable<E>> hasNoItemThat (Matcher<E> itemMatcher)

public static Matcher<Iterable<E>> hasSizeOfAtLeast (int expectedMinimumSize, Class<E> elementType)

public static Matcher<Iterable<E>> hasSizeOfAtLeast (int expectedMinimumSize)

public static Matcher<Iterable<E>> isSingleton (Matcher<E> singleElementMatcher)

public static Matcher<Iterable<E>> isSingleton (Class<E> type, E singleElement)

public static Matcher<Iterable<E>> isSingleton (E expectedElement)

public static Matcher<Iterable<E>> iterableWithSize (int expected, Class<E> elementType)