public class MinimumAgeSpecification {
  int threshold;

  public boolean isSatisfiedBy(Person candidate) {
    return candidate.getAge() >= threshold;
  }

  public boolean subsumes(MinimumAgeSpecification other) {
    return threshold >= other.getThreshold();
  }
}
