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

com.aventstack.extentreports.configuration.ConfigurationStore Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
package com.aventstack.extentreports.configuration;

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

public class ConfigurationStore {

	private Map store = new HashMap();

	public Map getStore() {
		return store;
	}

	public void storeConfig(String key, Object value) {
		store.put(key, value);
	}

	public boolean containsConfig(String k) {
		return store.containsKey(k);
	}

	public void removeConfig(String k) {
		store.remove(k);
	}

	public Object getConfig(String k) {
		return store.containsKey(k) ? store.get(k) : null;
	}

	public void extendConfig(Map map) {
		map.forEach((key, value) -> this.storeConfig(key, value));
	}

	public void extendConfig(ConfigurationStore config) {
		Map map = config.store;
		this.extendConfig(map);
	}

	public boolean isEmpty() {
		return store.isEmpty();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy