|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>
org.hamcrest.collection.IsIterableWithSize<E>
public class IsIterableWithSize<E>
Constructor Summary | |
---|---|
IsIterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
|
Method Summary | ||
---|---|---|
protected java.lang.Integer |
featureValueOf(java.lang.Iterable<E> actual)
Implement this to extract the interesting feature. |
|
static
|
iterableWithSize(int size)
|
|
static
|
iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
|
Methods inherited from class org.hamcrest.FeatureMatcher |
---|
describeTo, matchesSafely |
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher |
---|
describeMismatch, matches |
Methods inherited from class org.hamcrest.BaseMatcher |
---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IsIterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
Method Detail |
---|
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 object
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |