![JAR search and dependency download from the Maven repository](/logo.png)
com.oneops.infoblox.model.cname.$AutoValue_CNAME Maven / Gradle / Ivy
package com.oneops.infoblox.model.cname;
import com.squareup.moshi.Json;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_CNAME extends CNAME {
private final String ref;
private final String canonical;
private final String name;
private final String view;
$AutoValue_CNAME(
String ref,
String canonical,
String name,
@Nullable String view) {
if (ref == null) {
throw new NullPointerException("Null ref");
}
this.ref = ref;
if (canonical == null) {
throw new NullPointerException("Null canonical");
}
this.canonical = canonical;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.view = view;
}
@Json(name = "_ref")
@Override
public String ref() {
return ref;
}
@Override
public String canonical() {
return canonical;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String view() {
return view;
}
@Override
public String toString() {
return "CNAME{"
+ "ref=" + ref + ", "
+ "canonical=" + canonical + ", "
+ "name=" + name + ", "
+ "view=" + view
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CNAME) {
CNAME that = (CNAME) o;
return (this.ref.equals(that.ref()))
&& (this.canonical.equals(that.canonical()))
&& (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.canonical.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