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