List of usage examples for org.apache.commons.lang3.builder EqualsBuilder isEquals
boolean isEquals
To view the source code for org.apache.commons.lang3.builder EqualsBuilder isEquals.
Click Source Link
From source file:org.openl.rules.calculation.result.convertor2.SpreadsheetResultPoint.java
@Override public boolean equals(Object obj) { EqualsBuilder builder = new EqualsBuilder(); if (!(obj instanceof SpreadsheetResultPoint)) { return false; }//ww w.j a v a 2s . c o m SpreadsheetResultPoint another = (SpreadsheetResultPoint) obj; builder.append(another.columnIndex, columnIndex); builder.append(another.rowIndex, rowIndex); return builder.isEquals(); }
From source file:org.ruogu.lang3.builder.Person.java
public boolean equals2(Object obj) { if (obj == null) { return false; }/*from ww w . j a v a2 s . co m*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Person p = (Person) obj; System.out.println("..."); System.out.println("super.equals(obj):" + super.equals(obj)); EqualsBuilder eb = new EqualsBuilder(); System.out.println("eb:" + eb.isEquals()); return eb.append(this.name, p.name).append(this.age, p.age).append(this.smoker, p.smoker).isEquals(); }
From source file:org.sakaiproject.tool.assessment.data.dao.grading.AssessmentGradingData.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AssessmentGradingData other = (AssessmentGradingData) obj; EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(super.equals(obj)); builder.append(agentId, other.agentId); builder.append(assessmentGradingId, other.assessmentGradingId); builder.append(attemptDate, other.attemptDate); builder.append(comments, other.comments); builder.append(finalScore, other.finalScore); builder.append(forGrade, other.forGrade); builder.append(gradedBy, other.gradedBy); builder.append(gradedDate, other.gradedDate); builder.append(isAutoSubmitted, other.isAutoSubmitted); builder.append(isLate, other.isLate); builder.append(isRecorded, other.isRecorded); builder.append(itemGradingSet, other.itemGradingSet); builder.append(lastVisitedPart, other.lastVisitedPart); builder.append(lastVisitedQuestion, other.lastVisitedQuestion); builder.append(publishedAssessmentId, other.publishedAssessmentId); builder.append(publishedAssessmentTitle, other.publishedAssessmentTitle); builder.append(publishedItemId, other.publishedItemId); builder.append(status, other.status); builder.append(submittedDate, other.submittedDate); builder.append(timeElapsed, other.timeElapsed); builder.append(totalAutoScore, other.totalAutoScore); builder.append(totalOverrideScore, other.totalOverrideScore); builder.append(totalSubmitted, other.totalSubmitted); return builder.isEquals(); }
From source file:org.sakaiproject.tool.assessment.data.dao.grading.ItemGradingData.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ItemGradingData other = (ItemGradingData) obj; EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(super.equals(obj)); builder.append(agentId, other.agentId); builder.append(answerText, other.answerText); builder.append(assessmentGradingId, other.assessmentGradingId); builder.append(attemptsRemaining, other.attemptsRemaining); builder.append(autoScore, other.autoScore); builder.append(comments, other.comments); builder.append(gradedBy, other.gradedBy); builder.append(gradedDate, other.gradedDate); builder.append(itemGradingId, other.itemGradingId); builder.append(isCorrect, other.isCorrect); builder.append(lastDuration, other.lastDuration); builder.append(mediaArray, other.mediaArray); builder.append(overrideScore, other.overrideScore); builder.append(publishedAnswerId, other.publishedAnswerId); builder.append(publishedItemId, other.publishedItemId); builder.append(publishedItemTextId, other.publishedItemTextId); builder.append(rationale, other.rationale); builder.append(review, other.review); builder.append(submittedDate, other.submittedDate); return builder.isEquals(); }
From source file:org.sakaiproject.tool.assessment.data.dao.grading.MediaData.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MediaData other = (MediaData) obj;/*w ww.j a v a2 s. c o m*/ EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(super.equals(obj)); builder.append(createdBy, other.createdBy); builder.append(createdDate, other.createdDate); builder.append(description, other.description); builder.append(duration, other.duration); builder.append(durationIsOver, other.durationIsOver); builder.append(fileSize, other.fileSize); builder.append(filename, other.filename); builder.append(isHtmlInline, other.isHtmlInline); builder.append(isLink, other.isLink); builder.append(itemGradingData, other.itemGradingData); builder.append(lastModifiedBy, other.lastModifiedBy); builder.append(lastModifiedDate, other.lastModifiedDate); builder.append(location, other.location); builder.append(media, other.media); builder.append(mediaId, other.mediaId); builder.append(mimeType, other.mimeType); builder.append(status, other.status); builder.append(timeAllowed, other.timeAllowed); return builder.isEquals(); }
From source file:org.silverpeas.admin.web.StructureElementEntityMatcher.java
@SuppressWarnings("unchecked") @Override//from w w w . j a v a2 s. c o m public boolean matches(final Object item) { if (item != null) { final EqualsBuilder matcher = new EqualsBuilder(); matches(matcher, expected, (T) item); return matcher.isEquals(); } return false; }
From source file:org.silverpeas.components.forums.model.Moderator.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }// w w w. ja va 2 s. c o m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Moderator other = (Moderator) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(getUserId(), other.getUserId()); builder.append(getForumId(), other.getForumId()); builder.append(isByInheritance(), other.isByInheritance()); return builder.isEquals(); }
From source file:org.silverpeas.components.resourcesmanager.model.Category.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w . ja va 2 s. co m*/ if (getClass() != obj.getClass()) { return false; } final Category other = (Category) obj; EqualsBuilder matcher = new EqualsBuilder(); matcher.append(getId(), other.getId()); matcher.append(getInstanceId(), other.getInstanceId()); matcher.append(getName(), other.getName()); matcher.append(isBookable(), other.isBookable()); matcher.append(getForm(), other.getForm()); matcher.append(getCreaterId(), other.getCreaterId()); matcher.append(getUpdaterId(), other.getUpdaterId()); matcher.append(getDescription(), other.getDescription()); return matcher.isEquals(); }
From source file:org.silverpeas.components.resourcesmanager.model.Reservation.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from ww w .j av a2 s.co m*/ if (getClass() != obj.getClass()) { return false; } final Reservation other = (Reservation) obj; EqualsBuilder matcher = new EqualsBuilder(); matcher.append(getId(), other.getId()); matcher.append(getEvent(), other.getEvent()); matcher.append(getBeginDate(), other.getBeginDate()); matcher.append(getEndDate(), other.getEndDate()); matcher.append(getReason(), other.getReason()); matcher.append(getPlace(), other.getPlace()); matcher.append(getUserId(), other.getUserId()); matcher.append(getInstanceId(), other.getInstanceId()); return matcher.isEquals(); }
From source file:org.silverpeas.components.resourcesmanager.model.Resource.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w. j av a 2s .c o m*/ if (getClass() != obj.getClass()) { return false; } final Resource other = (Resource) obj; EqualsBuilder matcher = new EqualsBuilder(); matcher.append(getId(), other.getId()); matcher.append(getCategory(), other.getCategory()); matcher.append(getName(), other.getName()); matcher.append(isBookable(), other.isBookable()); matcher.append(getDescription(), other.getDescription()); matcher.append(getCreaterId(), other.getCreaterId()); matcher.append(getUpdaterId(), other.getUpdaterId()); matcher.append(getInstanceId(), other.getInstanceId()); return matcher.isEquals(); }