
org.jclouds.digitalocean2.domain.AutoValue_Networks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
The newest version!
package org.jclouds.digitalocean2.domain;
import java.util.List;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Networks extends Networks {
private final List ipv4;
private final List ipv6;
AutoValue_Networks(
List ipv4,
List ipv6) {
if (ipv4 == null) {
throw new NullPointerException("Null ipv4");
}
this.ipv4 = ipv4;
if (ipv6 == null) {
throw new NullPointerException("Null ipv6");
}
this.ipv6 = ipv6;
}
@Override
public List ipv4() {
return ipv4;
}
@Override
public List ipv6() {
return ipv6;
}
@Override
public String toString() {
return "Networks{"
+ "ipv4=" + ipv4 + ", "
+ "ipv6=" + ipv6
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Networks) {
Networks that = (Networks) o;
return (this.ipv4.equals(that.ipv4()))
&& (this.ipv6.equals(that.ipv6()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.ipv4.hashCode();
h *= 1000003;
h ^= this.ipv6.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy