package resources; import java.util.*; public class Stock { private Map<String, Integer> value = new HashMap<String, Integer>(); public void updateDeriver(Map.Entry<String, Map.Entry<Integer, Integer>> deriver) { this.value.put(deriver.getKey(),deriver.getValue().getValue()); } public Map<String, Integer> getValue() { return new HashMap<>(value); } }