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

com.github.qq275860560.common.util.HashMapUtil Maven / Gradle / Ivy

There is a newer version: 201905061822
Show newest version
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