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

fatjar.dto.ParamMap Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package fatjar.dto;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;

public class ParamMap> extends TreeMap {

    public void addParam(V param) {
        put(param.getKey(), param);
    }

    public List> getParamList() {
        List> params = new ArrayList>();
        for (V v : values()) {
            params.add(v);
        }
        return params;
    }

    public Object getValue(K k) {
        return get(k).getValue();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy