org.zodiac.loadbalancer.ribbon.constants.PlatformRibbonClientInfo Maven / Gradle / Ivy
package org.zodiac.loadbalancer.ribbon.constants;
import java.util.Objects;
public class PlatformRibbonClientInfo {
private String name = "client";
public PlatformRibbonClientInfo() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
PlatformRibbonClientInfo other = (PlatformRibbonClientInfo)obj;
return Objects.equals(name, other.name);
}
@Override
public String toString() {
return "PlatformRibbonClientInfo [name=" + name + "]";
}
}