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

org.openstack4j.openstack.common.MapEntity Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.openstack.common;

import java.util.HashMap;

import org.openstack4j.model.ModelEntity;

/**
 * Simple name value pair based Entity
 * 
 * @author Jeremy Unruh
 */
public class MapEntity extends HashMap implements ModelEntity {

    private static final long serialVersionUID = 1L;

    public static MapEntity create(String key, Object value) {
        return new MapEntity().add(key, value);
    }
    
    public MapEntity add(String key, Object value) {
        super.put(key, value);
        return this;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy