Use eclipse to generate those two
Overrides in order to avoid sonar
issue
Issue-ID: POLICY-2616
Change-Id: If7e887b99fa44dac5ac5fa6f8c8cfe677238576d
Signed-off-by: Taka Cho <takamune.cho@att.com>
return Util.uuidComparator.compare(uuid, other.uuid);
}
+ @Override
+ public int hashCode() {
+ return Objects.hash(uuid);
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (!(obj instanceof Server)) {
+ return false;
+ }
+ Server other = (Server) obj;
+ return Objects.equals(uuid, other.uuid);
+ }
+
/**
* This method may be invoked from any thread, and is used as the main
* entry point when testing.