com.qiniu.convert.StringMapPair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qsuits Show documentation
Show all versions of qsuits Show documentation
qiniu-suits is a efficient tools for qiniu api implemented by java8.
package com.qiniu.convert;
import com.qiniu.interfaces.KeyValuePair;
import java.util.HashMap;
import java.util.Map;
public class StringMapPair implements KeyValuePair> {
private Map stringMap = new HashMap<>();
@Override
public void putKey(String key, String value) {
stringMap.put(key, value);
}
@Override
public void put(String key, String value) {
stringMap.put(key, value);
}
@Override
public void put(String key, Boolean value) {
stringMap.put(key, String.valueOf(value));
}
@Override
public void put(String key, Integer value) {
stringMap.put(key, String.valueOf(value));
}
@Override
public void put(String key, Long value) {
stringMap.put(key, String.valueOf(value));
}
@Override
public Map getProtoEntity() {
return stringMap;
}
@Override
public int size() {
return stringMap.size();
}
}