Question: I need help identifying the two tests for these files. I ' m only allowed to make modifications to the java and not the @Test
I need help identifying the two tests for these files. Im only allowed to make modifications to the java and not the @Test file::
package iocollective;
import java.time.Clock;
public class SimpleAgedCache
private int size; add variable
public SimpleAgedCacheClock clock
public SimpleAgedCache
public void putObject key, Object value, int retentionInMillis
size; Increment size
Implement storing the keyvalue pair in a data structure like an array, hashmap, or linked list.
public boolean isEmpty
if size
return true;
else
return false;
public int size
return size;
public Object getObject key
Implement retrieving the value for the given key from the data structure.
return null;
package iocollective;
import java.time.Clock;
public class SimpleAgedCache
private int size; add variable
public SimpleAgedCacheClock clock
public SimpleAgedCache
public void putObject key, Object value, int retentionInMillis
size; Increment size
Implement storing the keyvalue pair in a data structure like an array, hashmap, or linked list.
public boolean isEmpty
if size
return true;
else
return false;
public int size
return size;
public Object getObject key
Implement retrieving the value for the given key from the data structure.
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
