public class ContainsSpecification<T> extends ExpressionSpecification
Type | Property and Description |
---|---|
PropertyFunction<? extends Collection<T>> |
collection |
Constructor and Description |
---|
ContainsSpecification(PropertyFunction<? extends Collection<T>> collectionProperty,
T value) |
Modifier and Type | Method and Description |
---|---|
PropertyFunction<? extends Collection<T>> |
collectionProperty() |
boolean |
satisfiedBy(Composite item)
Test whether an item matches the given specification
|
String |
toString() |
T |
value() |
and, or
public ContainsSpecification(PropertyFunction<? extends Collection<T>> collectionProperty, T value)
public PropertyFunction<? extends Collection<T>> collectionProperty()
public T value()
public boolean satisfiedBy(Composite item)
Specification
item
- the item to be tested