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

org.openstack4j.model.common.header.HeaderNameValue Maven / Gradle / Ivy

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

/**
 * Simple container which holds a Header name and Header value
 * 
 * @author Jeremy Unruh
 */
public final class HeaderNameValue {

    private final String name;
    private final Object value;
    
    public HeaderNameValue(String name, Object value) {
        this.name = name; 
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Object getValue() {
        return value;
    }
    
    @Override
    public String toString() {
        return String.format("%s: %s", name, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy