public class IterableBasedMatcher<V,T extends Iterable<V>>
extends org.hamcrest.BaseMatcher<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
IterableBasedMatcher.Comparator<V> |
| Modifier | Constructor and Description |
|---|---|
protected |
IterableBasedMatcher(String comparatorDescription,
IterableBasedMatcher.Comparator<V> comparator,
Iterable<? extends V> expected) |
| Modifier and Type | Method and Description |
|---|---|
protected IterableBasedMatcher.Comparator<V> |
comparator() |
protected String |
comparatorDescription() |
protected static boolean |
contains(Iterable<Object> actual,
Iterable<Object> expected) |
protected static <V> IterableBasedMatcher.Comparator<V> |
containsComparator() |
protected static boolean |
continueMatchesOn(Iterator<Object> ai,
Iterator<Object> ei) |
void |
describeTo(org.hamcrest.Description description) |
protected static boolean |
endsWith(Iterable<Object> actual,
Iterable<Object> expected) |
protected static <V> IterableBasedMatcher.Comparator<V> |
endsWithComparator() |
protected Iterable<? extends V> |
expected() |
boolean |
matches(Object item) |
protected static void |
skipOne(Iterator<?> iterator) |
protected static boolean |
startsWith(Iterable<Object> actual,
Iterable<Object> expected) |
protected static <V> IterableBasedMatcher.Comparator<V> |
startsWithComparator() |
@Nonnull protected static <V> IterableBasedMatcher.Comparator<V> startsWithComparator()
@Nonnull protected static <V> IterableBasedMatcher.Comparator<V> endsWithComparator()
@Nonnull protected static <V> IterableBasedMatcher.Comparator<V> containsComparator()
public void describeTo(@Nonnull org.hamcrest.Description description)
@Nonnull protected IterableBasedMatcher.Comparator<V> comparator()
protected static boolean startsWith(@Nonnull Iterable<Object> actual, @Nonnull Iterable<Object> expected)
protected static boolean endsWith(@Nonnull Iterable<Object> actual, @Nonnull Iterable<Object> expected)
protected static boolean contains(@Nonnull Iterable<Object> actual, @Nonnull Iterable<Object> expected)
protected static boolean continueMatchesOn(@Nonnull Iterator<Object> ai, @Nonnull Iterator<Object> ei)
Copyright © 2017 echocat. All rights reserved.