diff options
Diffstat (limited to 'orchestrator-restapi')
-rw-r--r-- | orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java index 8311967e1bb..739799fc37a 100644 --- a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java +++ b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java @@ -38,6 +38,26 @@ public class BatchHostSuspendRequest { } @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + BatchHostSuspendRequest that = (BatchHostSuspendRequest) o; + + if (parentHostname != null ? !parentHostname.equals(that.parentHostname) : that.parentHostname != null) + return false; + return hostnames != null ? hostnames.equals(that.hostnames) : that.hostnames == null; + + } + + @Override + public int hashCode() { + int result = parentHostname != null ? parentHostname.hashCode() : 0; + result = 31 * result + (hostnames != null ? hostnames.hashCode() : 0); + return result; + } + + @Override public String toString() { return "BatchHostSuspendRequest{" + "parentHostname=" + parentHostname + |