com.atlassian.bamboo.specs.util.MapBuilder Maven / Gradle / Ivy
package com.atlassian.bamboo.specs.util;
import java.util.LinkedHashMap;
import java.util.Map;
public class MapBuilder {
private final LinkedHashMap map = new LinkedHashMap();
/**
* Puts value to the map.
* @deprecated use {@link #put(Object, Object)}
*/
@Deprecated
public MapBuilder append(K k, V v) {
return this.put(k, v);
}
/**
* Puts value to the map.
*/
public MapBuilder put(K k, V v) {
map.put(k, v);
return this;
}
public Map build() {
return map;
}
}