@Test public void testHealthyResultStartsNull() { assertNull(_results.getHealthyResult()); }
@Override public HealthCheckResult getHealthyResult() { return Iterables.tryFind(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return result.isHealthy(); } }).orNull(); }
DefaultHealthCheckResults implements HealthCheckResults { @Override public HealthCheckResult getHealthyResult() { return Iterables.tryFind(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return result.isHealthy(); } }).orNull(); } }
DefaultHealthCheckResults implements HealthCheckResults { @Override public HealthCheckResult getHealthyResult() { return Iterables.tryFind(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return result.isHealthy(); } }).orNull(); }  }
DefaultHealthCheckResults implements HealthCheckResults { @Override public HealthCheckResult getHealthyResult() { return Iterables.tryFind(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return result.isHealthy(); } }).orNull(); }  @Override boolean hasHealthyResult(); @Override Iterable<HealthCheckResult> getAllResults(); @Override HealthCheckResult getHealthyResult(); @Override Iterable<HealthCheckResult> getUnhealthyResults(); void addHealthCheckResult(HealthCheckResult result); }
DefaultHealthCheckResults implements HealthCheckResults { @Override public HealthCheckResult getHealthyResult() { return Iterables.tryFind(_results, new Predicate<HealthCheckResult>() { @Override public boolean apply(HealthCheckResult result) { return result.isHealthy(); } }).orNull(); }  @Override boolean hasHealthyResult(); @Override Iterable<HealthCheckResult> getAllResults(); @Override HealthCheckResult getHealthyResult(); @Override Iterable<HealthCheckResult> getUnhealthyResults(); void addHealthCheckResult(HealthCheckResult result);  }