All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.manydesigns.elements.MapKeyValueAccessor Maven / Gradle / Ivy

The newest version!
package com.manydesigns.elements;

import java.util.Map;

public class MapKeyValueAccessor implements KeyValueAccessor {

    protected final Map map;

    public MapKeyValueAccessor(Map map) {
        this.map = map;
    }

    @Override
    public Object get(String name) {
        return map.get(name);
    }

    @Override
    public void set(String name, Object value) {
        map.put(name, value);
    }

    @Override
    public boolean has(String name) {
        return map.containsKey(name);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy