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.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 w w . j a v a2s. co m return false; }
From source file:com.norconex.collector.http.robot.RobotsMeta.java
@Override public boolean equals(final Object other) { if (!(other instanceof RobotsMeta)) { return false; }// ww w . java 2 s . c om RobotsMeta castOther = (RobotsMeta) other; return new EqualsBuilder().append(nofollow, castOther.nofollow).append(noindex, castOther.noindex) .isEquals(); }
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. j a v a 2 s .c om*/ return false; }
From source file:io.cloudslang.lang.compiler.parser.model.ParsedDescriptionSection.java
@Override public boolean equals(Object o) { if (this == o) { return true; }//from www . ja v a2 s .c o m if (o == null || getClass() != o.getClass()) { return false; } ParsedDescriptionSection that = (ParsedDescriptionSection) o; return new EqualsBuilder().append(startLineNumber, that.startLineNumber).append(data, that.data).isEquals(); }
From source file:fm.last.musicbrainz.data.model.ArtistCreditNameCompositeKey.java
@Override public boolean equals(Object object) { if (object == null) { return false; }//from ww w.ja v a 2 s. com if (object == this) { return true; } if (object.getClass() != getClass()) { return false; } ArtistCreditNameCompositeKey rhs = (ArtistCreditNameCompositeKey) object; return new EqualsBuilder().append(artistCredit, rhs.artistCredit).append(position, rhs.position).isEquals(); }
From source file:com.hp.ov.sdk.dto.SnmpV1Configuration.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; SnmpV1Configuration that = (SnmpV1Configuration) obj; return new EqualsBuilder().append(communityString, that.communityString).isEquals(); }
From source file:de.blizzy.documentr.subscription.Page.java
@Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { Page other = (Page) o;/* w w w . j av a 2 s . c o m*/ return new EqualsBuilder().append(projectName, other.projectName).append(branchName, other.branchName) .append(path, other.path).isEquals(); } return false; }
From source file:com.jdom.util.patterns.mvp.ActionConfiguration.java
@Override public boolean equals(Object obj) { if (obj instanceof ActionConfiguration) { ActionConfiguration other = (ActionConfiguration) obj; EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(this.getDisplayText(), other.getDisplayText()); eqBuilder.append(this.getClickAction(), other.getClickAction()); return eqBuilder.isEquals(); }//from ww w. j a va 2s . co m return false; }
From source file:com.esofthead.mycollab.core.db.query.Param.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w ww . j av a 2 s .com if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Param item = (Param) obj; return new EqualsBuilder().append(id, item.id).build(); }
From source file:de.qaware.chronix.importer.csv.Pair.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Pair<?, ?> pair = (Pair<?, ?>) o; return new EqualsBuilder().append(first, pair.first).append(second, pair.second).isEquals(); }