@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof SwarmSpec) { SwarmSpec that = (SwarmSpec) o; return ((this.name == null) ? (that.name() == null) : this.name.equals(that.name())) && ((this.labels == null) ? (that.labels() == null) : this.labels.equals(that.labels())) && ((this.orchestration == null) ? (that.orchestration() == null) : this.orchestration.equals(that.orchestration())) && ((this.raft == null) ? (that.raft() == null) : this.raft.equals(that.raft())) && ((this.dispatcher == null) ? (that.dispatcher() == null) : this.dispatcher.equals(that.dispatcher())) && ((this.caConfig == null) ? (that.caConfig() == null) : this.caConfig.equals(that.caConfig())) && ((this.encryptionConfig == null) ? (that.encryptionConfig() == null) : this.encryptionConfig.equals(that.encryptionConfig())) && ((this.taskDefaults == null) ? (that.taskDefaults() == null) : this.taskDefaults.equals(that.taskDefaults())); } return false; }
Builder(SwarmSpec source) { this.name = source.name(); this.labels = source.labels(); this.orchestration = source.orchestration(); this.raft = source.raft(); this.dispatcher = source.dispatcher(); this.caConfig = source.caConfig(); this.encryptionConfig = source.encryptionConfig(); this.taskDefaults = source.taskDefaults(); } @Override
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof SwarmSpec) { SwarmSpec that = (SwarmSpec) o; return ((this.name == null) ? (that.name() == null) : this.name.equals(that.name())) && ((this.labels == null) ? (that.labels() == null) : this.labels.equals(that.labels())) && ((this.orchestration == null) ? (that.orchestration() == null) : this.orchestration.equals(that.orchestration())) && ((this.raft == null) ? (that.raft() == null) : this.raft.equals(that.raft())) && ((this.dispatcher == null) ? (that.dispatcher() == null) : this.dispatcher.equals(that.dispatcher())) && ((this.caConfig == null) ? (that.caConfig() == null) : this.caConfig.equals(that.caConfig())) && ((this.encryptionConfig == null) ? (that.encryptionConfig() == null) : this.encryptionConfig.equals(that.encryptionConfig())) && ((this.taskDefaults == null) ? (that.taskDefaults() == null) : this.taskDefaults.equals(that.taskDefaults())); } return false; }
Builder(SwarmSpec source) { this.name = source.name(); this.labels = source.labels(); this.orchestration = source.orchestration(); this.raft = source.raft(); this.dispatcher = source.dispatcher(); this.caConfig = source.caConfig(); this.encryptionConfig = source.encryptionConfig(); this.taskDefaults = source.taskDefaults(); } @Override