edu.stanford.protege.webprotege.project.AutoValue_AvailableProject Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.project;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.common.UserId;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AvailableProject extends AvailableProject {
private final ProjectId projectId;
private final String getDisplayName;
private final UserId getOwner;
private final String getDescription;
private final boolean isInTrash;
private final long getCreatedAt;
private final UserId getCreatedBy;
private final long getLastModifiedAt;
private final UserId getLastModifiedBy;
private final boolean isDownloadable;
private final boolean isTrashable;
private final long getLastOpenedAt;
AutoValue_AvailableProject(
ProjectId projectId,
String getDisplayName,
UserId getOwner,
String getDescription,
boolean isInTrash,
long getCreatedAt,
UserId getCreatedBy,
long getLastModifiedAt,
UserId getLastModifiedBy,
boolean isDownloadable,
boolean isTrashable,
long getLastOpenedAt) {
if (projectId == null) {
throw new NullPointerException("Null projectId");
}
this.projectId = projectId;
if (getDisplayName == null) {
throw new NullPointerException("Null getDisplayName");
}
this.getDisplayName = getDisplayName;
if (getOwner == null) {
throw new NullPointerException("Null getOwner");
}
this.getOwner = getOwner;
if (getDescription == null) {
throw new NullPointerException("Null getDescription");
}
this.getDescription = getDescription;
this.isInTrash = isInTrash;
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;
this.isDownloadable = isDownloadable;
this.isTrashable = isTrashable;
this.getLastOpenedAt = getLastOpenedAt;
}
@Nonnull
@JsonProperty("projectId")
@Override
public ProjectId projectId() {
return projectId;
}
@Nonnull
@Override
public String getDisplayName() {
return getDisplayName;
}
@Nonnull
@Override
public UserId getOwner() {
return getOwner;
}
@Nonnull
@Override
public String getDescription() {
return getDescription;
}
@Override
public boolean isInTrash() {
return isInTrash;
}
@Override
public long getCreatedAt() {
return getCreatedAt;
}
@Nonnull
@Override
public UserId getCreatedBy() {
return getCreatedBy;
}
@Override
public long getLastModifiedAt() {
return getLastModifiedAt;
}
@Nonnull
@Override
public UserId getLastModifiedBy() {
return getLastModifiedBy;
}
@Override
public boolean isDownloadable() {
return isDownloadable;
}
@Override
public boolean isTrashable() {
return isTrashable;
}
@Override
public long getLastOpenedAt() {
return getLastOpenedAt;
}
@Override
public String toString() {
return "AvailableProject{"
+ "projectId=" + projectId + ", "
+ "getDisplayName=" + getDisplayName + ", "
+ "getOwner=" + getOwner + ", "
+ "getDescription=" + getDescription + ", "
+ "isInTrash=" + isInTrash + ", "
+ "getCreatedAt=" + getCreatedAt + ", "
+ "getCreatedBy=" + getCreatedBy + ", "
+ "getLastModifiedAt=" + getLastModifiedAt + ", "
+ "getLastModifiedBy=" + getLastModifiedBy + ", "
+ "isDownloadable=" + isDownloadable + ", "
+ "isTrashable=" + isTrashable + ", "
+ "getLastOpenedAt=" + getLastOpenedAt
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AvailableProject) {
AvailableProject that = (AvailableProject) o;
return this.projectId.equals(that.projectId())
&& this.getDisplayName.equals(that.getDisplayName())
&& this.getOwner.equals(that.getOwner())
&& this.getDescription.equals(that.getDescription())
&& this.isInTrash == that.isInTrash()
&& this.getCreatedAt == that.getCreatedAt()
&& this.getCreatedBy.equals(that.getCreatedBy())
&& this.getLastModifiedAt == that.getLastModifiedAt()
&& this.getLastModifiedBy.equals(that.getLastModifiedBy())
&& this.isDownloadable == that.isDownloadable()
&& this.isTrashable == that.isTrashable()
&& this.getLastOpenedAt == that.getLastOpenedAt();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= projectId.hashCode();
h$ *= 1000003;
h$ ^= getDisplayName.hashCode();
h$ *= 1000003;
h$ ^= getOwner.hashCode();
h$ *= 1000003;
h$ ^= getDescription.hashCode();
h$ *= 1000003;
h$ ^= isInTrash ? 1231 : 1237;
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$ ^= isDownloadable ? 1231 : 1237;
h$ *= 1000003;
h$ ^= isTrashable ? 1231 : 1237;
h$ *= 1000003;
h$ ^= (int) ((getLastOpenedAt >>> 32) ^ getLastOpenedAt);
return h$;
}
}