T - upper bound type of the propertypublic class PropertyCondition<T> extends Object
| Constructor and Description |
|---|
PropertyCondition(PropertyName name,
Class<? extends T> type,
List<? extends ValuePredicate<? super T>> predicates)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Object expected,
Object actual)
Returns
true iff exists a predicate accepts the pair. |
String |
describeExpected(Object expected,
Object actual)
Returns an expected value as readable text.
|
PropertyName |
getPropertyName()
Returns the target property name.
|
public PropertyCondition(PropertyName name, Class<? extends T> type, List<? extends ValuePredicate<? super T>> predicates)
name - the property nametype - the property typepredicates - the value predicatesIllegalArgumentException - if some parameters were nullpublic PropertyName getPropertyName()
public boolean accepts(Object expected, Object actual)
true iff exists a predicate accepts the pair.expected - the expected valueactual - the actual valuetrue iff exists a predicate accepts the pairCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.