@Test public void notExpiredUntilExpired() { ValidLease lease = new ValidLease(10L); assertFalse(lease.isExpired(9L)); assertTrue(lease.isExpired(11L)); }
@Override public boolean isExpired(long now) { return leaseExpiry - now < 0; }
ValidLease implements Lease { @Override public boolean isExpired(long now) { return leaseExpiry - now < 0; } }
ValidLease implements Lease { @Override public boolean isExpired(long now) { return leaseExpiry - now < 0; } ValidLease(long leaseExpiry); }
ValidLease implements Lease { @Override public boolean isExpired(long now) { return leaseExpiry - now < 0; } ValidLease(long leaseExpiry); @Override boolean isExpired(long now); @Override boolean allowRenewal(); @Override String toString(); }
ValidLease implements Lease { @Override public boolean isExpired(long now) { return leaseExpiry - now < 0; } ValidLease(long leaseExpiry); @Override boolean isExpired(long now); @Override boolean allowRenewal(); @Override String toString();  }