org.zanata.rest.dto.ProjectStatisticsMatrix Maven / Gradle / Ivy
package org.zanata.rest.dto;
import org.zanata.common.ContentState;
import org.zanata.common.LocaleId;
/**
* @author Alex Eng [email protected]
*/
public class ProjectStatisticsMatrix {
private String savedDate;
private LocaleId localeId;
private String localeDisplayName;
private ContentState savedState;
private long wordCount;
public ProjectStatisticsMatrix(final String savedDate,
final LocaleId localeId, final String localeDisplayName,
final ContentState savedState, final long wordCount) {
this.savedDate = savedDate;
this.localeId = localeId;
this.localeDisplayName = localeDisplayName;
this.savedState = savedState;
this.wordCount = wordCount;
}
public String getSavedDate() {
return this.savedDate;
}
public LocaleId getLocaleId() {
return this.localeId;
}
public String getLocaleDisplayName() {
return this.localeDisplayName;
}
public ContentState getSavedState() {
return this.savedState;
}
public long getWordCount() {
return this.wordCount;
}
public void setSavedDate(final String savedDate) {
this.savedDate = savedDate;
}
public void setLocaleId(final LocaleId localeId) {
this.localeId = localeId;
}
public void setLocaleDisplayName(final String localeDisplayName) {
this.localeDisplayName = localeDisplayName;
}
public void setSavedState(final ContentState savedState) {
this.savedState = savedState;
}
public void setWordCount(final long wordCount) {
this.wordCount = wordCount;
}
@Override
public boolean equals(final Object o) {
if (o == this)
return true;
if (!(o instanceof ProjectStatisticsMatrix))
return false;
final ProjectStatisticsMatrix other = (ProjectStatisticsMatrix) o;
if (!other.canEqual((Object) this))
return false;
final Object this$savedDate = this.getSavedDate();
final Object other$savedDate = other.getSavedDate();
if (this$savedDate == null ? other$savedDate != null
: !this$savedDate.equals(other$savedDate))
return false;
final Object this$localeId = this.getLocaleId();
final Object other$localeId = other.getLocaleId();
if (this$localeId == null ? other$localeId != null
: !this$localeId.equals(other$localeId))
return false;
final Object this$localeDisplayName = this.getLocaleDisplayName();
final Object other$localeDisplayName = other.getLocaleDisplayName();
if (this$localeDisplayName == null ? other$localeDisplayName != null
: !this$localeDisplayName.equals(other$localeDisplayName))
return false;
final Object this$savedState = this.getSavedState();
final Object other$savedState = other.getSavedState();
if (this$savedState == null ? other$savedState != null
: !this$savedState.equals(other$savedState))
return false;
if (this.getWordCount() != other.getWordCount())
return false;
return true;
}
protected boolean canEqual(final Object other) {
return other instanceof ProjectStatisticsMatrix;
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
final Object $savedDate = this.getSavedDate();
result = result * PRIME
+ ($savedDate == null ? 43 : $savedDate.hashCode());
final Object $localeId = this.getLocaleId();
result = result * PRIME
+ ($localeId == null ? 43 : $localeId.hashCode());
final Object $localeDisplayName = this.getLocaleDisplayName();
result = result * PRIME + ($localeDisplayName == null ? 43
: $localeDisplayName.hashCode());
final Object $savedState = this.getSavedState();
result = result * PRIME
+ ($savedState == null ? 43 : $savedState.hashCode());
final long $wordCount = this.getWordCount();
result = result * PRIME + (int) ($wordCount >>> 32 ^ $wordCount);
return result;
}
@Override
public String toString() {
return "ProjectStatisticsMatrix(savedDate=" + this.getSavedDate()
+ ", localeId=" + this.getLocaleId()
+ ", localeDisplayName=" + this.getLocaleDisplayName()
+ ", savedState=" + this.getSavedState() + ", wordCount="
+ this.getWordCount() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy