@Test public void verifyToString() { CacheKey key = new CacheKey(300, 1000); assertEquals("300s-1000", key.toString()); }
@Override public String toString() { return getTimeToLive() + "s-" + getMaxEntries(); }
CacheKey { @Override public String toString() { return getTimeToLive() + "s-" + getMaxEntries(); } }
CacheKey { @Override public String toString() { return getTimeToLive() + "s-" + getMaxEntries(); } CacheKey(int timeToLive, int maxEntries); }
CacheKey { @Override public String toString() { return getTimeToLive() + "s-" + getMaxEntries(); } CacheKey(int timeToLive, int maxEntries); int getTimeToLive(); int getMaxEntries(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString(); }
CacheKey { @Override public String toString() { return getTimeToLive() + "s-" + getMaxEntries(); } CacheKey(int timeToLive, int maxEntries); int getTimeToLive(); int getMaxEntries(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString();  }