public StatsDetailsTransport() {
}
- @Override
- public String toString() {
- return this.getClass().getName() + "[appId=" + getAppId() + ", appName=" + getAppName() + ", metricUrl="
- + getMetricUrl() + "]";
- }
-
public String getAppName() {
return appName;
}
public void setMetricUrl(String metricUrl) {
this.metricUrl = metricUrl;
}
+
+ @Override
+ public String toString() {
+ return this.getClass().getName() + "[appId=" + getAppId() + ", appName=" + getAppName() + ", metricUrl="
+ + getMetricUrl() + "]";
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ StatsDetailsTransport other = (StatsDetailsTransport) obj;
+ return appId == other.appId;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = super.hashCode();
+ result = prime * result + appId;
+ result = prime * result + ((appName == null) ? 0 : appName.hashCode());
+ result = prime * result + ((metricUrl == null) ? 0 : metricUrl.hashCode());
+ return result;
+ }
+
}