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:io.cloudslang.lang.entities.ListLoopStatement.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from www. j a v a2 s . co m*/ if (o == null || getClass() != o.getClass()) { return false; } ListLoopStatement that = (ListLoopStatement) o; return new EqualsBuilder().appendSuper(super.equals(o)).append(varName, that.varName).isEquals(); }
From source file:com.jdom.mediadownloader.domain.User.java
@Override public boolean equals(Object other) { if (other instanceof User) { User that = (User) other;// ww w . ja va 2 s . com EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getEmailAddress(), that.getEmailAddress()); return builder.isEquals(); } return false; }
From source file:com.hp.ov.sdk.dto.ImportPdd.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; ImportPdd that = (ImportPdd) obj;//from ww w . j a va 2s .c o m return new EqualsBuilder().append(force, that.force).append(hostname, that.hostname) .append(password, that.password).append(username, that.username).isEquals(); }
From source file:cz.jirutka.beuri.parser.ast.BinaryFunction.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (getClass() != obj.getClass()) return false; final BinaryFunction other = (BinaryFunction) obj; return new EqualsBuilder().append(operator, other.operator).append(arguments, other.arguments).isEquals(); }
From source file:com.plugins.pomfromjar.dependency.JarFileDependency.java
@Override public boolean equals(Object object) { if (object == null) return false; if (object == this) return true; if (object.getClass() != getClass()) return false; JarFileDependency jfd = (JarFileDependency) object; return new EqualsBuilder(). // if deriving: appendSuper(super.equals(obj)). append(this.getGroupId(), jfd.getGroupId()).append(this.getArtifactId(), jfd.getArtifactId()) .append(this.getVersion(), jfd.getVersion()). isEquals();/* ww w . j a v a 2 s. c o m*/ }
From source file:de.qaware.chronix.solr.query.analysis.functions.transformation.Top.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* w w w .j av a 2s .c o m*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Top rhs = (Top) obj; return new EqualsBuilder().append(this.value, rhs.value).isEquals(); }
From source file:mx.com.adolfogarcia.popularmovies.model.transport.MovieVideosJsonModel.java
@Override public boolean equals(Object obj) { if (obj == this) { return true; }//from w w w .j a v a2s .c om if (!(obj instanceof MovieVideosJsonModel)) { return false; } MovieVideosJsonModel that = ((MovieVideosJsonModel) obj); return new EqualsBuilder().append(this.mMovieId, that.mMovieId).append(this.mVideos, that.mVideos) .isEquals(); }
From source file:com.norconex.importer.handler.splitter.AbstractDocumentSplitter.java
@Override public boolean equals(final Object other) { if (!(other instanceof AbstractDocumentSplitter)) { return false; }/*from w w w . j ava 2 s . c o m*/ return new EqualsBuilder().appendSuper(super.equals(other)).isEquals(); }
From source file:com.xpn.xwiki.doc.XWikiLink.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }// w w w. ja v a 2 s .co m if (!(obj instanceof XWikiLink)) { return false; } XWikiLink o = (XWikiLink) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(getDocId(), o.getDocId()); builder.append(getLink(), o.getLink()); builder.append(getFullName(), o.getFullName()); return builder.isEquals(); }
From source file:com.esofthead.mycollab.module.user.domain.RolePermission.java
public final boolean equals(Object obj) { if (obj == null) { return false; }// w w w .java 2s. com if (obj == this) { return true; } if (!obj.getClass().isAssignableFrom(getClass())) { return false; } RolePermission item = (RolePermission) obj; return new EqualsBuilder().append(id, item.id).build(); }