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