edu.stanford.protege.webprotege.project.AutoValue_NewProjectSettings Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.project;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.UserId;
import edu.stanford.protege.webprotege.csv.DocumentId;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NewProjectSettings extends NewProjectSettings {
private final UserId getProjectOwner;
private final String getDisplayName;
private final String getLangTag;
private final String getProjectDescription;
private final DocumentId sourceDocument;
AutoValue_NewProjectSettings(
UserId getProjectOwner,
String getDisplayName,
String getLangTag,
String getProjectDescription,
@Nullable DocumentId sourceDocument) {
if (getProjectOwner == null) {
throw new NullPointerException("Null getProjectOwner");
}
this.getProjectOwner = getProjectOwner;
if (getDisplayName == null) {
throw new NullPointerException("Null getDisplayName");
}
this.getDisplayName = getDisplayName;
if (getLangTag == null) {
throw new NullPointerException("Null getLangTag");
}
this.getLangTag = getLangTag;
if (getProjectDescription == null) {
throw new NullPointerException("Null getProjectDescription");
}
this.getProjectDescription = getProjectDescription;
this.sourceDocument = sourceDocument;
}
@JsonProperty("owner")
@Nonnull
@Override
public UserId getProjectOwner() {
return getProjectOwner;
}
@JsonProperty("displayName")
@Nonnull
@Override
public String getDisplayName() {
return getDisplayName;
}
@JsonProperty("langTag")
@Nonnull
@Override
public String getLangTag() {
return getLangTag;
}
@JsonProperty("description")
@Nonnull
@Override
public String getProjectDescription() {
return getProjectDescription;
}
@Nullable
@Override
protected DocumentId sourceDocument() {
return sourceDocument;
}
@Override
public String toString() {
return "NewProjectSettings{"
+ "getProjectOwner=" + getProjectOwner + ", "
+ "getDisplayName=" + getDisplayName + ", "
+ "getLangTag=" + getLangTag + ", "
+ "getProjectDescription=" + getProjectDescription + ", "
+ "sourceDocument=" + sourceDocument
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NewProjectSettings) {
NewProjectSettings that = (NewProjectSettings) o;
return this.getProjectOwner.equals(that.getProjectOwner())
&& this.getDisplayName.equals(that.getDisplayName())
&& this.getLangTag.equals(that.getLangTag())
&& this.getProjectDescription.equals(that.getProjectDescription())
&& (this.sourceDocument == null ? that.sourceDocument() == null : this.sourceDocument.equals(that.sourceDocument()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= getProjectOwner.hashCode();
h$ *= 1000003;
h$ ^= getDisplayName.hashCode();
h$ *= 1000003;
h$ ^= getLangTag.hashCode();
h$ *= 1000003;
h$ ^= getProjectDescription.hashCode();
h$ *= 1000003;
h$ ^= (sourceDocument == null) ? 0 : sourceDocument.hashCode();
return h$;
}
}