public interface Par { public K hentNokkel (); public V hentVerdi (); } class OrdnetPar implements Par { K key; V value; public OrdnetPar(K key, V value){ this.key = key; this.value = value; } public K hentNokkel (){ return key; } public V hentVerdi (){ return value; } }