Commit a483e82f authored by R.W.Majeed's avatar R.W.Majeed

allow get via enum

parent 088b1e56
...@@ -2,9 +2,14 @@ package org.aktin; ...@@ -2,9 +2,14 @@ package org.aktin;
import java.util.Set; import java.util.Set;
import org.aktin.dwh.PreferenceKey;
public interface Preferences { public interface Preferences {
String get(String key); String get(String key);
default String get(PreferenceKey key){
return get(key.key());
Set<String> keySet(); Set<String> keySet();
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment