T - the type of the candidate object the specification applies to.V - the type of the attribute which is targeted by this specification.public class AttributeSpecification<T,V> extends Object implements Specification<T>
| Constructor and Description |
|---|
AttributeSpecification(String path,
Specification<V> valueSpecification)
Creates an attribute specification.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
Returns the path.
|
Specification<V> |
getValueSpecification()
Returns the specification on the value.
|
boolean |
isSatisfiedBy(T candidate)
Evaluates if the candidate object passed as argument satisfies the specification.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, any, asPredicate, negate, none, orpublic AttributeSpecification(String path, Specification<V> valueSpecification)
path - the path to the target attribute, supporting dot notation for nested
attributes.valueSpecification - the specification that the value of the target attribute must
satisfy.public String getPath()
public Specification<V> getValueSpecification()
public boolean isSatisfiedBy(T candidate)
SpecificationisSatisfiedBy in interface Specification<T>candidate - the candidate object to check.Copyright © 2013-2018–2019 SeedStack. All rights reserved.