List of usage examples for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder
public EqualsBuilder()
Constructor for EqualsBuilder.
Starts off assuming that equals is true
.
From source file:com.omertron.themoviedbapi.model.AbstractIdName.java
@Override public boolean equals(final Object obj) { if (obj instanceof AbstractIdName) { final AbstractIdName other = (AbstractIdName) obj; return new EqualsBuilder().append(name, other.name).append(id, other.id).isEquals(); } else {//from www . j a v a2 s . c om return false; } }
From source file:com.roche.iceboar.progressevent.ProgressEvent.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from w ww . j a va 2 s .co m*/ if (o == null || getClass() != o.getClass()) { return false; } ProgressEvent that = (ProgressEvent) o; return new EqualsBuilder().append(eventName, that.eventName).isEquals(); }
From source file:it.jaschke.alexandria.model.domain.Category.java
@Override public boolean equals(Object obj) { if (obj == this) { return true; }//from w ww . ja va 2 s .c o m if (!(obj instanceof Category)) { return false; } Category that = ((Category) obj); return new EqualsBuilder().append(this.mId, that.mId).append(this.mName, that.mName).isEquals(); }
From source file:io.cloudslang.lang.compiler.caching.CacheValue.java
@Override public boolean equals(Object o) { if (this == o) { return true; }// w ww. ja v a 2 s .com if (o == null || getClass() != o.getClass()) { return false; } CacheValue that = (CacheValue) o; return new EqualsBuilder().append(source, that.source) .append(executableModellingResult, that.executableModellingResult).isEquals(); }
From source file:cz.jirutka.beuri.parser.ast.Value.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (getClass() != obj.getClass()) return false; final Value other = (Value) obj; return new EqualsBuilder().append(value, other.value).isEquals(); }
From source file:com.htmlhifive.resourcefw.sample.resource.person.Person.java
/** * @see Object#equals(Object)// ww w .j a va 2s . c o m */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof Person)) return false; Person otherObj = (Person) obj; return new EqualsBuilder().append(this.personId, otherObj.personId).append(this.name, otherObj.name) .append(this.organization, otherObj.organization).append(this.age, otherObj.age).isEquals(); }
From source file:com.intuit.wasabi.authorizationobjects.UserRoleList.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w ww . ja v a2 s .com if (obj == this) { return true; } if (!(obj instanceof UserRoleList)) { return false; } UserRoleList other = (UserRoleList) obj; return new EqualsBuilder().append(getRoleList().size(), other.getRoleList().size()).isEquals(); }
From source file:ca.uhn.fhir.model.api.BasePrimitive.java
@Override public boolean equals(Object theObj) { if (theObj == null) { return false; }/*from w w w . j av a 2 s . c om*/ if (!(theObj.getClass() == getClass())) { return false; } BasePrimitive<?> o = (BasePrimitive<?>) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getValue(), o.getValue()); return b.isEquals(); }
From source file:net.sf.gazpachoquest.dto.support.AbstractIdentifiableDTO.java
@Override public boolean equals(final Object obj) { if (obj instanceof Identifiable) { final Identifiable other = (Identifiable) obj; if (!isNew()) { return new EqualsBuilder().append(getId(), other.getId()).isEquals(); } else {/*from ww w.ja v a 2 s .co m*/ return EqualsBuilder.reflectionEquals(this, obj); } } else { return false; } }
From source file:com.antonjohansson.elasticsearchshell.domain.index.IndexStatsContainer.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }/*from w ww. ja va 2s .co m*/ if (obj == this) { return true; } IndexStatsContainer that = (IndexStatsContainer) obj; return new EqualsBuilder().append(this.primaries, that.primaries).append(this.total, that.total).isEquals(); }