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

com.atlassian.bamboo.specs.util.MapBuilder Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy