public interface ISpecification<T>
ISpecification is part of our DDD building block.
Specifications are small, single‐purpose classes(SRP), similar to policies.
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isSatisfiedBy(T candidate)
Check if
candidate is satisfied by the specification. |
boolean |
isSatisfiedBy(T candidate,
Notification notification)
Same as
isSatisfiedBy(Object) except that it accepts Notification to pass more detailed error info. |
boolean isSatisfiedBy(T candidate)
candidate is satisfied by the specification.candidate - boolean isSatisfiedBy(T candidate, Notification notification)
isSatisfiedBy(Object) except that it accepts Notification to pass more detailed error info.candidate - notification - Copyright © 2020–2023. All rights reserved.