Question: The exercise - get the tests to pass! Explore using an inner class ExpirableEntry Try not using built in collection classes; Lists, Maps, or Sets.
The exercise get the tests to pass!
Explore using an inner class ExpirableEntry
Try not using built in collection classes; Lists, Maps, or Sets.
Try both Java and Kotlin examples.
package iocollective;
import java.time.Clock;
public class SimpleAgedCache
public SimpleAgedCacheClock clock
public SimpleAgedCache
public void putObject key, Object value, int retentionInMillis
public boolean isEmpty
return false;
public int size
return ;
public Object getObject key
return null;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
