public class IsIterableWithSize<E> extends FeatureMatcher<Iterable<E>,Integer>
Constructor and Description |
---|
IsIterableWithSize(Matcher<? super Integer> sizeMatcher) |
Modifier and Type | Method and Description |
---|---|
protected Integer |
featureValueOf(Iterable<E> actual)
Implement this to extract the interesting feature.
|
static <E> Matcher<Iterable<E>> |
iterableWithSize(int size) |
static <E> Matcher<Iterable<E>> |
iterableWithSize(Matcher<? super Integer> sizeMatcher) |
describeTo, matchesSafely
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
protected Integer featureValueOf(Iterable<E> actual)
FeatureMatcher
featureValueOf
in class FeatureMatcher<Iterable<E>,Integer>
actual
- the target objectpublic static <E> Matcher<Iterable<E>> iterableWithSize(Matcher<? super Integer> sizeMatcher)
Copyright © 2016. All rights reserved.