Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface TheInterface {
- private static Map<Object, String> FIELD_MAP = new HashMap<>();
- public default String getField() {
- return FIELD_MAP.get(this);
- }
- public default void setField(String field) {
- FIELD_MAP.put(this, field);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement