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