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 io.collective;
import java.time.Clock;
public class SimpleAgedCache {
public SimpleAgedCache(Clock clock){
}
public SimpleAgedCache(){
}
public void put(Object key, Object value, int retentionInMillis){
}
public boolean isEmpty(){
return false;
}
public int size(){
return 0;
}
public Object get(Object key){
return null;
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!