List of usage examples for org.apache.commons.lang3.builder EqualsBuilder append
public EqualsBuilder append(final boolean[] lhs, final boolean[] rhs)
Deep comparison of array of boolean
.
From source file:com.invariantproperties.project.student.matcher.StudentEquality.java
@Override public boolean matchesSafely(Student actual) { if (actual == null) { return false; }//ww w . j a v a 2 s. c om EqualsBuilder eq = new EqualsBuilder(); eq.append(expected.getId(), actual.getId()); eq.append(expected.getUuid(), actual.getUuid()); eq.append(expected.getName(), actual.getName()); eq.append(expected.getEmailAddress(), actual.getEmailAddress()); eq.append(expected.getCreationDate(), actual.getCreationDate()); return eq.isEquals(); }
From source file:com.hypersocket.realm.Realm.java
protected void doEqualsOnKeys(EqualsBuilder builder, Object obj) { Realm r = (Realm) obj; builder.append(getName(), r.getName()); }
From source file:com.jdom.get.stuff.done.domain.ListFilterOption.java
@Override public boolean equals(Object obj) { if (obj instanceof ListFilterOption) { ListFilterOption other = (ListFilterOption) obj; EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(this.getListName(), other.getListName()); return eqBuilder.isEquals(); }// w w w .ja v a2 s.c o m return false; }
From source file:com.jdom.get.stuff.done.domain.TagFilterOption.java
@Override public boolean equals(Object obj) { if (obj instanceof TagFilterOption) { TagFilterOption other = (TagFilterOption) obj; EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(this.getTagName(), other.getTagName()); return eqBuilder.isEquals(); }//from w ww.j a v a2 s . c o m return false; }
From source file:com.invariantproperties.project.student.matcher.CourseEquality.java
@Override public boolean matchesSafely(Course actual) { if (actual == null) { return false; }//from ww w. ja v a 2 s . c om EqualsBuilder eq = new EqualsBuilder(); eq.append(expected.getId(), actual.getId()); eq.append(expected.getUuid(), actual.getUuid()); eq.append(expected.getCode(), actual.getCode()); eq.append(expected.getName(), actual.getName()); eq.append(expected.getSummary(), actual.getSummary()); eq.append(expected.getDescription(), actual.getDescription()); eq.append(expected.getCreditHours(), actual.getCreditHours()); eq.append(expected.getCreationDate(), actual.getCreationDate()); return eq.isEquals(); }
From source file:de.bstreit.java.oscr.business.products.ContainerSize.java
@Override protected void additionalEqualsForSubclasses(EqualsBuilder equalsBuilder, ContainerSize otherObject) { equalsBuilder.append(size, otherObject.size); }
From source file:com.jdom.stat.flash.domain.Deck.java
@Override public boolean equals(Object obj) { if (obj instanceof Deck) { Deck other = (Deck) obj;//www .j a v a 2 s . c o m EqualsBuilder builder = new EqualsBuilder(); builder.append(this.name, other.name); builder.append(this.version, other.version); return builder.isEquals(); } return super.equals(obj); }
From source file:com.jdom.mediadownloader.series.util.AvailableSeries.java
/** * {@inheritDoc}// w ww. j a va 2 s . co m * * @return */ @Override public boolean equals(Object obj) { // Only consider the name important if (obj instanceof AvailableSeries) { AvailableSeries that = (AvailableSeries) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); return builder.isEquals(); } return false; }
From source file:concept.matcher.IsMatcher.java
@Override public boolean equals(Object obj) { // comparing same object (same instance) if (this == obj) { return true; }/*from w ww . ja va 2s. co m*/ // not same type? if (!(obj instanceof IsMatcher)) { return false; } @SuppressWarnings("rawtypes") final IsMatcher other = (IsMatcher) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), other.getName()); builder.append(this.getValue(), other.getValue()); return builder.isEquals(); }
From source file:de.bstreit.java.oscr.business.staff.User.java
@Override protected void additionalEqualsForSubclasses(EqualsBuilder equalsBuilder, User otherObject) { equalsBuilder.append(loginname, otherObject.loginname); }