@Test public void testValue() throws Exception { CacheEntry<Double> entry = new CacheEntry<>(1.0d, 86400); Double value = entry.value(); boolean isExpired = entry.expired(); assertThat("Value is different to what was passed in", value, equalTo(1.0d)); assertThat("Cache entry should not have expired", isExpired, is(false)); }
public T value() { return value; }
CacheEntry { public T value() { return value; } }
CacheEntry { public T value() { return value; } CacheEntry(T value, long expireMillis); }
CacheEntry { public T value() { return value; } CacheEntry(T value, long expireMillis); T value(); boolean expired(); }
CacheEntry { public T value() { return value; } CacheEntry(T value, long expireMillis); T value(); boolean expired();  }