Create a new specification that is the AND operation of this specification and another specification.
Create a new specification that is the AND operation of this specification and another specification.
Specification to AND.
A new specification.
引数に nullを与えた場合
Create a new specification that is the NOT operation of this specification.
Create a new specification that is the NOT operation of this specification.
A new specification.
Create a new specification that is the OR operation of this specification and another specification.
Create a new specification that is the OR operation of this specification and another specification.
Specification to OR.
A new specification.
引数に nullを与えた場合
仕様を表すモデル。
DDD本の中で説明している Specification パターンに則ったオブジェクトを表すインターフェイス。
Specificationの実装は、AbstractSpecificationを基底クラスとして実装するとよい。 その場合、#isSatisfiedBy(Object)を実装する必要しかない。