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

org.hisp.dhis.util.MapBuilder Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.hisp.dhis.util;

import java.util.HashMap;
import java.util.Map;

public class MapBuilder
{
    private final Map map;

    public MapBuilder()
    {
        map = new HashMap<>();
    }

    public MapBuilder put( K key, V value )
    {
        this.map.put( key, value );
        return this;
    }

    public Map build()
    {
        return this.map;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy