edu.stanford.protege.webprotege.project.AutoValue_ProjectDetails Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.project;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.DictionaryLanguage;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.common.UserId;
import edu.stanford.protege.webprotege.lang.DisplayNameSettings;
import edu.stanford.protege.webprotege.projectsettings.EntityDeprecationSettings;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProjectDetails extends ProjectDetails {
private final ProjectId projectId;
private final String getDisplayName;
private final String getDescription;
private final UserId getOwner;
private final boolean isInTrash;
private final DictionaryLanguage getDefaultDictionaryLanguage;
private final DisplayNameSettings getDefaultDisplayNameSettings;
private final long getCreatedAt;
private final UserId getCreatedBy;
private final long getLastModifiedAt;
private final UserId getLastModifiedBy;
private final EntityDeprecationSettings getEntityDeprecationSettings;
AutoValue_ProjectDetails(
ProjectId projectId,
String getDisplayName,
String getDescription,
UserId getOwner,
boolean isInTrash,
DictionaryLanguage getDefaultDictionaryLanguage,
DisplayNameSettings getDefaultDisplayNameSettings,
long getCreatedAt,
UserId getCreatedBy,
long getLastModifiedAt,
UserId getLastModifiedBy,
EntityDeprecationSettings getEntityDeprecationSettings) {
if (projectId == null) {
throw new NullPointerException("Null projectId");
}
this.projectId = projectId;
if (getDisplayName == null) {
throw new NullPointerException("Null getDisplayName");
}
this.getDisplayName = getDisplayName;
if (getDescription == null) {
throw new NullPointerException("Null getDescription");
}
this.getDescription = getDescription;
if (getOwner == null) {
throw new NullPointerException("Null getOwner");
}
this.getOwner = getOwner;
this.isInTrash = isInTrash;
if (getDefaultDictionaryLanguage == null) {
throw new NullPointerException("Null getDefaultDictionaryLanguage");
}
this.getDefaultDictionaryLanguage = getDefaultDictionaryLanguage;
if (getDefaultDisplayNameSettings == null) {
throw new NullPointerException("Null getDefaultDisplayNameSettings");
}
this.getDefaultDisplayNameSettings = getDefaultDisplayNameSettings;
this.getCreatedAt = getCreatedAt;
if (getCreatedBy == null) {
throw new NullPointerException("Null getCreatedBy");
}
this.getCreatedBy = getCreatedBy;
this.getLastModifiedAt = getLastModifiedAt;
if (getLastModifiedBy == null) {
throw new NullPointerException("Null getLastModifiedBy");
}
this.getLastModifiedBy = getLastModifiedBy;
if (getEntityDeprecationSettings == null) {
throw new NullPointerException("Null getEntityDeprecationSettings");
}
this.getEntityDeprecationSettings = getEntityDeprecationSettings;
}
@JsonProperty("_id")
@Nonnull
@Override
public ProjectId projectId() {
return projectId;
}
@JsonProperty("displayName")
@Nonnull
@Override
public String getDisplayName() {
return getDisplayName;
}
@JsonProperty("description")
@Nonnull
@Override
public String getDescription() {
return getDescription;
}
@JsonProperty("owner")
@Nonnull
@Override
public UserId getOwner() {
return getOwner;
}
@JsonProperty("inTrash")
@Override
public boolean isInTrash() {
return isInTrash;
}
@JsonProperty("defaultLanguage")
@Nonnull
@Override
public DictionaryLanguage getDefaultDictionaryLanguage() {
return getDefaultDictionaryLanguage;
}
@JsonProperty("defaultDisplayNameSettings")
@Nonnull
@Override
public DisplayNameSettings getDefaultDisplayNameSettings() {
return getDefaultDisplayNameSettings;
}
@JsonIgnore
@Override
public long getCreatedAt() {
return getCreatedAt;
}
@JsonProperty("createdBy")
@Nonnull
@Override
public UserId getCreatedBy() {
return getCreatedBy;
}
@JsonIgnore
@Override
public long getLastModifiedAt() {
return getLastModifiedAt;
}
@Nonnull
@JsonProperty("modifiedBy")
@Override
public UserId getLastModifiedBy() {
return getLastModifiedBy;
}
@Nonnull
@JsonProperty("entityDeprecationSettings")
@Override
public EntityDeprecationSettings getEntityDeprecationSettings() {
return getEntityDeprecationSettings;
}
@Override
public String toString() {
return "ProjectDetails{"
+ "projectId=" + projectId + ", "
+ "getDisplayName=" + getDisplayName + ", "
+ "getDescription=" + getDescription + ", "
+ "getOwner=" + getOwner + ", "
+ "isInTrash=" + isInTrash + ", "
+ "getDefaultDictionaryLanguage=" + getDefaultDictionaryLanguage + ", "
+ "getDefaultDisplayNameSettings=" + getDefaultDisplayNameSettings + ", "
+ "getCreatedAt=" + getCreatedAt + ", "
+ "getCreatedBy=" + getCreatedBy + ", "
+ "getLastModifiedAt=" + getLastModifiedAt + ", "
+ "getLastModifiedBy=" + getLastModifiedBy + ", "
+ "getEntityDeprecationSettings=" + getEntityDeprecationSettings
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProjectDetails) {
ProjectDetails that = (ProjectDetails) o;
return this.projectId.equals(that.projectId())
&& this.getDisplayName.equals(that.getDisplayName())
&& this.getDescription.equals(that.getDescription())
&& this.getOwner.equals(that.getOwner())
&& this.isInTrash == that.isInTrash()
&& this.getDefaultDictionaryLanguage.equals(that.getDefaultDictionaryLanguage())
&& this.getDefaultDisplayNameSettings.equals(that.getDefaultDisplayNameSettings())
&& this.getCreatedAt == that.getCreatedAt()
&& this.getCreatedBy.equals(that.getCreatedBy())
&& this.getLastModifiedAt == that.getLastModifiedAt()
&& this.getLastModifiedBy.equals(that.getLastModifiedBy())
&& this.getEntityDeprecationSettings.equals(that.getEntityDeprecationSettings());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= projectId.hashCode();
h$ *= 1000003;
h$ ^= getDisplayName.hashCode();
h$ *= 1000003;
h$ ^= getDescription.hashCode();
h$ *= 1000003;
h$ ^= getOwner.hashCode();
h$ *= 1000003;
h$ ^= isInTrash ? 1231 : 1237;
h$ *= 1000003;
h$ ^= getDefaultDictionaryLanguage.hashCode();
h$ *= 1000003;
h$ ^= getDefaultDisplayNameSettings.hashCode();
h$ *= 1000003;
h$ ^= (int) ((getCreatedAt >>> 32) ^ getCreatedAt);
h$ *= 1000003;
h$ ^= getCreatedBy.hashCode();
h$ *= 1000003;
h$ ^= (int) ((getLastModifiedAt >>> 32) ^ getLastModifiedAt);
h$ *= 1000003;
h$ ^= getLastModifiedBy.hashCode();
h$ *= 1000003;
h$ ^= getEntityDeprecationSettings.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy