SpecificationOr

Adapter to make it easy to perform boolean algebra on Specification s.

Subclasses represent the conjunction of multiple Specification s. An implementation should instantiate the Specification s to be satisfied in its constructor.

For example:

public class TeaOrCoffeeSpec extends SpecificationOr {
    public TeaOrCoffeeSpec() {
        super(new MustBeTeaSpec(), new MustBeCoffeeSpec());
    }
}

API

SpecificationOr.java
class SpecificationOr {
  SpecificationOr(Specification... specifications)
  String satisfies(Object obj)
}