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

com.capitalone.dashboard.model.NameValue Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package com.capitalone.dashboard.model;


public class NameValue {

    private String name;
    private String value;

    public NameValue () {
    }

    public NameValue(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || !(o instanceof NameValue)) return false;

        NameValue nameValue = (NameValue) o;

        if (!name.equals(nameValue.name)) return false;
        return value.equals(nameValue.value);

    }

    @Override
    public int hashCode() {
        int result = name.hashCode();
        result = 31 * result + value.hashCode();
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy