org.hamcrest.collection
Class IsIterableWithSize<E>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
          extended by org.hamcrest.FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>
              extended by org.hamcrest.collection.IsIterableWithSize<E>
All Implemented Interfaces:
org.hamcrest.Matcher<java.lang.Iterable<E>>, org.hamcrest.SelfDescribing

public class IsIterableWithSize<E>
extends org.hamcrest.FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>


Constructor Summary
IsIterableWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher)
           
 
Method Summary
protected  java.lang.Integer featureValueOf(java.lang.Iterable<E> actual)
           
static
<E> org.hamcrest.Matcher<java.lang.Iterable<E>>
iterableWithSize(int size)
           
static
<E> org.hamcrest.Matcher<java.lang.Iterable<E>>
iterableWithSize(org.hamcrest.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

IsIterableWithSize

public IsIterableWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher)
Method Detail

featureValueOf

protected java.lang.Integer featureValueOf(java.lang.Iterable<E> actual)
Specified by:
featureValueOf in class org.hamcrest.FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>

iterableWithSize

public static <E> org.hamcrest.Matcher<java.lang.Iterable<E>> iterableWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher)

iterableWithSize

public static <E> org.hamcrest.Matcher<java.lang.Iterable<E>> iterableWithSize(int size)


Copyright © 2010. All Rights Reserved.