@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NetworkSpec) { NetworkSpec that = (NetworkSpec) o; return (this.name.equals(that.name())) && ((this.labels == null) ? (that.labels() == null) : this.labels.equals(that.labels())) && (this.driverConfiguration.equals(that.driverConfiguration())) && ((this.ipv6Enabled == null) ? (that.ipv6Enabled() == null) : this.ipv6Enabled.equals(that.ipv6Enabled())) && ((this.internal == null) ? (that.internal() == null) : this.internal.equals(that.internal())) && ((this.attachable == null) ? (that.attachable() == null) : this.attachable.equals(that.attachable())) && ((this.ipamOptions == null) ? (that.ipamOptions() == null) : this.ipamOptions.equals(that.ipamOptions())); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NetworkSpec) { NetworkSpec that = (NetworkSpec) o; return (this.name.equals(that.name())) && ((this.labels == null) ? (that.labels() == null) : this.labels.equals(that.labels())) && (this.driverConfiguration.equals(that.driverConfiguration())) && ((this.ipv6Enabled == null) ? (that.ipv6Enabled() == null) : this.ipv6Enabled.equals(that.ipv6Enabled())) && ((this.internal == null) ? (that.internal() == null) : this.internal.equals(that.internal())) && ((this.attachable == null) ? (that.attachable() == null) : this.attachable.equals(that.attachable())) && ((this.ipamOptions == null) ? (that.ipamOptions() == null) : this.ipamOptions.equals(that.ipamOptions())); } return false; }