*/
package org.oransc.ric.portal.dashboard.model;
+import java.util.Objects;
+
public class AppStats implements IDashboardResponse {
private String instanceKey;
private StatsDetailsTransport statsDetails;
return this.getClass().getSimpleName() + "[instance=" + instanceKey + ", statsDetails=" + statsDetails + "]";
}
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ AppStats other = (AppStats) obj;
+ return Objects.equals(instanceKey, other.instanceKey) && Objects.equals(statsDetails, other.statsDetails);
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = super.hashCode();
+ result = prime * result + ((instanceKey == null) ? 0 : instanceKey.hashCode());
+ result = prime * result + ((statsDetails == null) ? 0 : statsDetails.hashCode());
+ return result;
+ }
+
}