com.github.qq275860560.common.util.HashMapUtil Maven / Gradle / Ivy
package com.github.qq275860560.common.util;
import java.util.HashMap;
/**
* @author [email protected]
*/
public class HashMapUtil {
private HashMapUtil() {
}
private HashMap map = new HashMap<>();
static class Builder {
private HashMapUtil hashMapUtil;
public Builder() {
hashMapUtil = new HashMapUtil();
}
public Builder put(String key, Object value) {
hashMapUtil.put(key, value);
return this;
}
public HashMap build() {
return hashMapUtil.map;
}
}
public void put(String key, Object value) {
map.put(key, value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy