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

org.webbitserver.stub.StubDataHolder Maven / Gradle / Ivy

package org.webbitserver.stub;

import org.webbitserver.DataHolder;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class StubDataHolder implements DataHolder {

    private Map data = new HashMap();

    @Override
    public Map data() {
        return data;
    }

    @Override
    public Object data(String key) {
        return data.get(key);
    }

    @Override
    public DataHolder data(String key, Object value) {
        data.put(key, value);
        return this;
    }

    @Override
    public Set dataKeys() {
        return data.keySet();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy