@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof PortConfig) { PortConfig that = (PortConfig) o; return ((this.name == null) ? (that.name() == null) : this.name.equals(that.name())) && ((this.protocol == null) ? (that.protocol() == null) : this.protocol.equals(that.protocol())) && ((this.targetPort == null) ? (that.targetPort() == null) : this.targetPort.equals(that.targetPort())) && ((this.publishedPort == null) ? (that.publishedPort() == null) : this.publishedPort.equals(that.publishedPort())) && ((this.publishMode == null) ? (that.publishMode() == null) : this.publishMode.equals(that.publishMode())); } return false; }
Builder(PortConfig source) { this.name = source.name(); this.protocol = source.protocol(); this.targetPort = source.targetPort(); this.publishedPort = source.publishedPort(); this.publishMode = source.publishMode(); } @Override
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof PortConfig) { PortConfig that = (PortConfig) o; return ((this.name == null) ? (that.name() == null) : this.name.equals(that.name())) && ((this.protocol == null) ? (that.protocol() == null) : this.protocol.equals(that.protocol())) && ((this.targetPort == null) ? (that.targetPort() == null) : this.targetPort.equals(that.targetPort())) && ((this.publishedPort == null) ? (that.publishedPort() == null) : this.publishedPort.equals(that.publishedPort())) && ((this.publishMode == null) ? (that.publishMode() == null) : this.publishMode.equals(that.publishMode())); } return false; }
Builder(PortConfig source) { this.name = source.name(); this.protocol = source.protocol(); this.targetPort = source.targetPort(); this.publishedPort = source.publishedPort(); this.publishMode = source.publishMode(); } @Override