@Test public void testUnhealthyResultsStartEmpty() { assertTrue(Iterables.isEmpty(_results.getUnhealthyResults())); }
@Override public Iterable<HealthCheckResult> getUnhealthyResults() { return Iterables.filter(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return !result.isHealthy(); } }); }
DefaultHealthCheckResults implements HealthCheckResults { @Override public Iterable<HealthCheckResult> getUnhealthyResults() { return Iterables.filter(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return !result.isHealthy(); } }); } }
DefaultHealthCheckResults implements HealthCheckResults { @Override public Iterable<HealthCheckResult> getUnhealthyResults() { return Iterables.filter(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return !result.isHealthy(); } }); }  }
DefaultHealthCheckResults implements HealthCheckResults { @Override public Iterable<HealthCheckResult> getUnhealthyResults() { return Iterables.filter(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return !result.isHealthy(); } }); }  @Override boolean hasHealthyResult(); @Override Iterable<HealthCheckResult> getAllResults(); @Override HealthCheckResult getHealthyResult(); @Override Iterable<HealthCheckResult> getUnhealthyResults(); void addHealthCheckResult(HealthCheckResult result); }
DefaultHealthCheckResults implements HealthCheckResults { @Override public Iterable<HealthCheckResult> getUnhealthyResults() { return Iterables.filter(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return !result.isHealthy(); } }); }  @Override boolean hasHealthyResult(); @Override Iterable<HealthCheckResult> getAllResults(); @Override HealthCheckResult getHealthyResult(); @Override Iterable<HealthCheckResult> getUnhealthyResults(); void addHealthCheckResult(HealthCheckResult result);  }