com.capitalone.dashboard.model.NameValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
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