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

com.relevantcodes.extentreports.model.SystemProperties Maven / Gradle / Ivy

There is a newer version: 2.41.2
Show newest version
/*
* Copyright (c) 2015, Anshoo Arora (Relevant Codes).  All rights reserved.
* 
* Copyrights licensed under the New BSD License.
* 
* See the accompanying LICENSE file for terms.
*/

package com.relevantcodes.extentreports.model;

import java.util.LinkedHashMap;
import java.util.Map;

public class SystemProperties {
    public void setSystemInfo(Map info) {
        //if (this.info.size() > 0)
            //info.putAll(this.info);
        
        //this.info = info;
        this.info.putAll(info);
    }
    
    public void setSystemInfo(String k, String v) {
        info.put(k, v);
    }
    
    public Map getSystemInfo() {
        return info;
    }
    
    public SystemProperties() {
        info = new LinkedHashMap();        
    }
    
    private Map info;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy