jdave.containment
Class CollectionContainment<T>
java.lang.Object
org.hamcrest.BaseMatcher<java.util.Collection<T>>
jdave.BaseMatcherContainment<T>
jdave.containment.CollectionContainment<T>
- All Implemented Interfaces:
- IContainment<T>, org.hamcrest.Matcher<java.util.Collection<T>>, org.hamcrest.SelfDescribing
- Direct Known Subclasses:
- AllContainment, AnyContainment, ExactContainment, InOrderContainment, InPartialOrderContainment
public abstract class CollectionContainment<T>
- extends BaseMatcherContainment<T>
- Author:
- Joni Freeman
|
Field Summary |
protected java.util.Collection<T> |
elements
|
|
Method Summary |
java.lang.String |
error(java.util.Collection<T> actual)
|
boolean |
matches(java.util.Collection<T> actual)
|
protected abstract boolean |
nullSafeMatches(java.util.Collection<T> actual)
|
java.lang.String |
toString()
|
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_ |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hamcrest.Matcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_ |
elements
protected final java.util.Collection<T> elements
CollectionContainment
public CollectionContainment(java.util.Collection<T> elements)
CollectionContainment
public CollectionContainment(java.util.Iterator<T> elements)
CollectionContainment
public CollectionContainment(java.lang.Iterable<T> elements)
matches
public boolean matches(java.util.Collection<T> actual)
nullSafeMatches
protected abstract boolean nullSafeMatches(java.util.Collection<T> actual)
toString
public java.lang.String toString()
- Overrides:
toString in class org.hamcrest.BaseMatcher<java.util.Collection<T>>
error
public java.lang.String error(java.util.Collection<T> actual)
Copyright ? 2009. All Rights Reserved.