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

com.sap.mobile.services.client.push.MapBuilder Maven / Gradle / Ivy

The newest version!
package com.sap.mobile.services.client.push;

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

class MapBuilder {

	static  MapBuilder newInstance(Class clazz) {
		return new MapBuilder<>();
	}

	private final Map map;

	private MapBuilder() {
		this.map = new HashMap<>();
	}

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

	Map build() {
		return this.map;
	}

	Map putAndBuild(String key, V value) {
		return this.put(key, value).build();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy