![JAR search and dependency download from the Maven repository](/logo.png)
com.oneops.infoblox.model.a.$AutoValue_ARec Maven / Gradle / Ivy
package com.oneops.infoblox.model.a;
import com.squareup.moshi.Json;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ARec extends ARec {
private final String ref;
private final String ipv4Addr;
private final String name;
private final String view;
$AutoValue_ARec(
String ref,
String ipv4Addr,
String name,
@Nullable String view) {
if (ref == null) {
throw new NullPointerException("Null ref");
}
this.ref = ref;
if (ipv4Addr == null) {
throw new NullPointerException("Null ipv4Addr");
}
this.ipv4Addr = ipv4Addr;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.view = view;
}
@Json(name = "_ref")
@Override
public String ref() {
return ref;
}
@Json(name = "ipv4addr")
@Override
public String ipv4Addr() {
return ipv4Addr;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String view() {
return view;
}
@Override
public String toString() {
return "ARec{"
+ "ref=" + ref + ", "
+ "ipv4Addr=" + ipv4Addr + ", "
+ "name=" + name + ", "
+ "view=" + view
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ARec) {
ARec that = (ARec) o;
return (this.ref.equals(that.ref()))
&& (this.ipv4Addr.equals(that.ipv4Addr()))
&& (this.name.equals(that.name()))
&& ((this.view == null) ? (that.view() == null) : this.view.equals(that.view()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.ref.hashCode();
h *= 1000003;
h ^= this.ipv4Addr.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (view == null) ? 0 : this.view.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy