
org.jclouds.digitalocean2.domain.AutoValue_Networks_Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digitalocean2-fixed Show documentation
Show all versions of digitalocean2-fixed Show documentation
jclouds provider for Digital Ocean v2 Compute API, with backported fixes
The newest version!
package org.jclouds.digitalocean2.domain;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Networks_Address extends Networks.Address {
private final String ip;
private final String netmask;
private final String gateway;
private final String type;
AutoValue_Networks_Address(
String ip,
String netmask,
String gateway,
String type) {
if (ip == null) {
throw new NullPointerException("Null ip");
}
this.ip = ip;
if (netmask == null) {
throw new NullPointerException("Null netmask");
}
this.netmask = netmask;
if (gateway == null) {
throw new NullPointerException("Null gateway");
}
this.gateway = gateway;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
}
@Override
public String ip() {
return ip;
}
@Override
public String netmask() {
return netmask;
}
@Override
public String gateway() {
return gateway;
}
@Override
public String type() {
return type;
}
@Override
public String toString() {
return "Address{"
+ "ip=" + ip + ", "
+ "netmask=" + netmask + ", "
+ "gateway=" + gateway + ", "
+ "type=" + type
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Networks.Address) {
Networks.Address that = (Networks.Address) o;
return (this.ip.equals(that.ip()))
&& (this.netmask.equals(that.netmask()))
&& (this.gateway.equals(that.gateway()))
&& (this.type.equals(that.type()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.ip.hashCode();
h *= 1000003;
h ^= this.netmask.hashCode();
h *= 1000003;
h ^= this.gateway.hashCode();
h *= 1000003;
h ^= this.type.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy