Skip to content

jekaGr/jv-storage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jv-storage

Implement the Storage of the key-value type that is parameterized with two types of data. You should be able to put new key-value pairs and get value by key.

If you are given the key-value pair, and the storage already contains this key, you should replace the value.

Example:

Storage<Integer, Box> storage = new StorageImpl<>(); 
Box box = new Box();
storage.put(22, box); 
Box value = storage.get(22); // returns the Box
int size = storage.size(); // returns storage size

You should solve this task using one or two arrays (this depends on your implementation). If you use arrays for your solution, we assume that the maximum number of elements in our Storage is 10.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%