public abstract class ComparisonSpecification<T> extends ExpressionSpecification
| Modifier and Type | Field and Description |
|---|---|
protected PropertyFunction<T> |
property |
protected T |
value |
| Constructor and Description |
|---|
ComparisonSpecification(PropertyFunction<T> property,
T value) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
compare(T value) |
PropertyFunction<T> |
property() |
boolean |
satisfiedBy(Composite item)
Test whether an item matches the given specification
|
T |
value() |
and, orprotected final PropertyFunction<T> property
protected final T value
public ComparisonSpecification(PropertyFunction<T> property, T value)
public PropertyFunction<T> property()
public final boolean satisfiedBy(Composite item)
Specificationitem - the item to be testedprotected abstract boolean compare(T value)
public T value()