package resources; import java.util.*; public class Shipping { private Deriver deriver; public Shipping(Deriver deriver) { this.deriver = deriver; } public Map.Entry<String, Integer> getValue() { return new AbstractMap.SimpleEntry<>(this.deriver.getValue().getKey(), this.deriver.getValue().getValue().getKey()); } }