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, matchesSafelydescribeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringprotected Integer featureValueOf(Iterable<E> actual)
FeatureMatcherfeatureValueOf 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.