org.apache.maven.scm
Class CollectionSizeMatcher<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<Collection<T>>
          extended by org.apache.maven.scm.CollectionSizeMatcher<T>
All Implemented Interfaces:
org.hamcrest.Matcher<Collection<T>>, org.hamcrest.SelfDescribing

public class CollectionSizeMatcher<T>
extends org.hamcrest.TypeSafeMatcher<Collection<T>>


Constructor Summary
CollectionSizeMatcher(int size)
           
 
Method Summary
 void describeTo(org.hamcrest.Description desc)
           
 boolean matchesSafely(Collection<T> collection)
           
static
<T> org.hamcrest.Matcher<Collection<T>>
size(int length, Class<T> clazz)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
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

CollectionSizeMatcher

public CollectionSizeMatcher(int size)
Method Detail

matchesSafely

public boolean matchesSafely(Collection<T> collection)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Collection<T>>

describeTo

public void describeTo(org.hamcrest.Description desc)

size

public static <T> org.hamcrest.Matcher<Collection<T>> size(int length,
                                                           Class<T> clazz)


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.