@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NetworkSettings) { NetworkSettings that = (NetworkSettings) o; return ((this.ipAddress == null) ? (that.ipAddress() == null) : this.ipAddress.equals(that.ipAddress())) && ((this.ipPrefixLen == null) ? (that.ipPrefixLen() == null) : this.ipPrefixLen.equals(that.ipPrefixLen())) && ((this.gateway == null) ? (that.gateway() == null) : this.gateway.equals(that.gateway())) && ((this.bridge == null) ? (that.bridge() == null) : this.bridge.equals(that.bridge())) && ((this.portMapping == null) ? (that.portMapping() == null) : this.portMapping.equals(that.portMapping())) && ((this.ports == null) ? (that.ports() == null) : this.ports.equals(that.ports())) && ((this.macAddress == null) ? (that.macAddress() == null) : this.macAddress.equals(that.macAddress())) && ((this.networks == null) ? (that.networks() == null) : this.networks.equals(that.networks())) && ((this.endpointId == null) ? (that.endpointId() == null) : this.endpointId.equals(that.endpointId())) && ((this.sandboxId == null) ? (that.sandboxId() == null) : this.sandboxId.equals(that.sandboxId())) && ((this.sandboxKey == null) ? (that.sandboxKey() == null) : this.sandboxKey.equals(that.sandboxKey())) && ((this.hairpinMode == null) ? (that.hairpinMode() == null) : this.hairpinMode.equals(that.hairpinMode())) && ((this.linkLocalIPv6Address == null) ? (that.linkLocalIPv6Address() == null) : this.linkLocalIPv6Address.equals(that.linkLocalIPv6Address())) && ((this.linkLocalIPv6PrefixLen == null) ? (that.linkLocalIPv6PrefixLen() == null) : this.linkLocalIPv6PrefixLen.equals(that.linkLocalIPv6PrefixLen())) && ((this.globalIPv6Address == null) ? (that.globalIPv6Address() == null) : this.globalIPv6Address.equals(that.globalIPv6Address())) && ((this.globalIPv6PrefixLen == null) ? (that.globalIPv6PrefixLen() == null) : this.globalIPv6PrefixLen.equals(that.globalIPv6PrefixLen())) && ((this.ipv6Gateway == null) ? (that.ipv6Gateway() == null) : this.ipv6Gateway.equals(that.ipv6Gateway())); } return false; }
Builder(NetworkSettings source) { this.ipAddress = source.ipAddress(); this.ipPrefixLen = source.ipPrefixLen(); this.gateway = source.gateway(); this.bridge = source.bridge(); this.portMapping = source.portMapping(); this.ports = source.ports(); this.macAddress = source.macAddress(); this.networks = source.networks(); this.endpointId = source.endpointId(); this.sandboxId = source.sandboxId(); this.sandboxKey = source.sandboxKey(); this.hairpinMode = source.hairpinMode(); this.linkLocalIPv6Address = source.linkLocalIPv6Address(); this.linkLocalIPv6PrefixLen = source.linkLocalIPv6PrefixLen(); this.globalIPv6Address = source.globalIPv6Address(); this.globalIPv6PrefixLen = source.globalIPv6PrefixLen(); this.ipv6Gateway = source.ipv6Gateway(); } @Override
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NetworkSettings) { NetworkSettings that = (NetworkSettings) o; return ((this.ipAddress == null) ? (that.ipAddress() == null) : this.ipAddress.equals(that.ipAddress())) && ((this.ipPrefixLen == null) ? (that.ipPrefixLen() == null) : this.ipPrefixLen.equals(that.ipPrefixLen())) && ((this.gateway == null) ? (that.gateway() == null) : this.gateway.equals(that.gateway())) && ((this.bridge == null) ? (that.bridge() == null) : this.bridge.equals(that.bridge())) && ((this.portMapping == null) ? (that.portMapping() == null) : this.portMapping.equals(that.portMapping())) && ((this.ports == null) ? (that.ports() == null) : this.ports.equals(that.ports())) && ((this.macAddress == null) ? (that.macAddress() == null) : this.macAddress.equals(that.macAddress())) && ((this.networks == null) ? (that.networks() == null) : this.networks.equals(that.networks())) && ((this.endpointId == null) ? (that.endpointId() == null) : this.endpointId.equals(that.endpointId())) && ((this.sandboxId == null) ? (that.sandboxId() == null) : this.sandboxId.equals(that.sandboxId())) && ((this.sandboxKey == null) ? (that.sandboxKey() == null) : this.sandboxKey.equals(that.sandboxKey())) && ((this.hairpinMode == null) ? (that.hairpinMode() == null) : this.hairpinMode.equals(that.hairpinMode())) && ((this.linkLocalIPv6Address == null) ? (that.linkLocalIPv6Address() == null) : this.linkLocalIPv6Address.equals(that.linkLocalIPv6Address())) && ((this.linkLocalIPv6PrefixLen == null) ? (that.linkLocalIPv6PrefixLen() == null) : this.linkLocalIPv6PrefixLen.equals(that.linkLocalIPv6PrefixLen())) && ((this.globalIPv6Address == null) ? (that.globalIPv6Address() == null) : this.globalIPv6Address.equals(that.globalIPv6Address())) && ((this.globalIPv6PrefixLen == null) ? (that.globalIPv6PrefixLen() == null) : this.globalIPv6PrefixLen.equals(that.globalIPv6PrefixLen())) && ((this.ipv6Gateway == null) ? (that.ipv6Gateway() == null) : this.ipv6Gateway.equals(that.ipv6Gateway())); } return false; }
Builder(NetworkSettings source) { this.ipAddress = source.ipAddress(); this.ipPrefixLen = source.ipPrefixLen(); this.gateway = source.gateway(); this.bridge = source.bridge(); this.portMapping = source.portMapping(); this.ports = source.ports(); this.macAddress = source.macAddress(); this.networks = source.networks(); this.endpointId = source.endpointId(); this.sandboxId = source.sandboxId(); this.sandboxKey = source.sandboxKey(); this.hairpinMode = source.hairpinMode(); this.linkLocalIPv6Address = source.linkLocalIPv6Address(); this.linkLocalIPv6PrefixLen = source.linkLocalIPv6PrefixLen(); this.globalIPv6Address = source.globalIPv6Address(); this.globalIPv6PrefixLen = source.globalIPv6PrefixLen(); this.ipv6Gateway = source.ipv6Gateway(); } @Override