com.zipwhip.signals.address.ClientAddress Maven / Gradle / Ivy
package com.zipwhip.signals.address;
import com.zipwhip.util.StringUtil;
/**
* Created by IntelliJ IDEA.
* User: Michael
* Date: Dec 11, 2010
* Time: 5:50:25 PM
*/
public class ClientAddress extends ClientAddressBase {
private static final long serialVersionUID = 6712566321988288130L;
private String clientId;
private String toString = null;
public ClientAddress() {
}
public ClientAddress(String clientId) {
this.clientId = clientId;
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
toString = null;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if ((o == null) || (getClass() != o.getClass())) {
return false;
}
ClientAddress that = (ClientAddress) o;
if (clientId != null ? !clientId.equals(that.clientId) : that.clientId != null) {
return false;
}
return true;
}
@Override
public int hashCode() {
return clientId != null ? clientId.hashCode() : 0;
}
@Override
public String toString() {
if (toString == null) {
toString = StringUtil.join("{class:", this.getClass().getSimpleName(), ",clientId:", clientId, "}");
}
return toString;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy