de.aipark.api.chargingstation.ChargingPriceModel Maven / Gradle / Ivy
package de.aipark.api.chargingstation;
/**
* Created by torgen on 06.02.18.
*/
public class ChargingPriceModel {
private String name;
private String description;
public ChargingPriceModel() {
}
public ChargingPriceModel(String name, String description) {
this.name = name;
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ChargingPriceModel)) return false;
ChargingPriceModel that = (ChargingPriceModel) o;
if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false;
return getDescription() != null ? getDescription().equals(that.getDescription()) : that.getDescription() == null;
}
@Override
public int hashCode() {
int result = getName() != null ? getName().hashCode() : 0;
result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
return result;
}
@Override
public String toString() {
return "ChargingPriceModel{" +
"name='" + name + '\'' +
", description='" + description + '\'' +
'}';
}
}