info.unterrainer.commons.httpserver.daos.ParamMap Maven / Gradle / Ivy
package info.unterrainer.commons.httpserver.daos;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Singular;
@Data
@AllArgsConstructor
@Builder
public class ParamMap {
@Singular
private Map parameters;
public ParamMap addParameter(final String parameterKey, final Object parameterValue) {
parameters.put(parameterKey, parameterValue);
return this;
}
public Object get(final String parameterKey) {
return parameters.get(parameterKey);
}
public Set> entrySet() {
return parameters.entrySet();
}
public Set keySet() {
return parameters.keySet();
}
public Collection