com.github.brunothg.swing2.utils.MapBuilder Maven / Gradle / Ivy
package com.github.brunothg.swing2.utils;
import java.util.Map;
public class MapBuilder {
private Map map;
public MapBuilder(Map map) {
this.map = map;
}
public MapBuilder put(K key, V value) {
map.put(key, value);
return this;
}
public MapBuilder put(Map extends K, ? extends V> m) {
map.putAll(m);
return this;
}
public Map build() {
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy