fatjar.dto.ParamMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of FatJar Show documentation
Show all versions of FatJar Show documentation
FatJar simple API to quick prototyping and portable web services
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();
}
}