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:ca.travelagency.config.Salutation.java
@Override public boolean equals(Object object) { if (this == object) { return true; }// w w w. ja v a 2 s. c om if (!(object instanceof Salutation)) { return false; } return new EqualsBuilder().append(getName(), ((Salutation) object).getName()).isEquals(); }
From source file:gr.abiss.calipso.model.dto.ReportDataEntry.java
@Override public boolean equals(Object obj) { if (null == obj) { return false; }// w w w . j a v a2s.co m if (this == obj) { return true; } if (!(obj instanceof ReportDataEntry)) { return false; } ReportDataEntry that = (ReportDataEntry) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(this.getLabel(), that.getLabel()) //.append(this.getEntryData(), that.getEntryData()) .isEquals(); }
From source file:de.qaware.chronix.solr.query.analysis.functions.transformation.Bottom.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from ww w.java2 s .co m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Bottom rhs = (Bottom) obj; return new EqualsBuilder().append(this.value, rhs.value).isEquals(); }
From source file:de.qaware.chronix.solr.query.analysis.functions.transformation.Scale.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w . ja v a2s.c om*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Scale rhs = (Scale) obj; return new EqualsBuilder().append(this.value, rhs.value).isEquals(); }
From source file:com.antonjohansson.elasticsearchshell.connection.Connection.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }// ww w .ja v a 2s .co m if (obj == this) { return true; } Connection that = (Connection) obj; return new EqualsBuilder().append(this.name, that.name).append(this.host, that.host) .append(this.port, that.port).append(this.username, that.username) .append(this.password, that.password).isEquals(); }
From source file:com.norconex.importer.handler.transformer.AbstractDocumentTransformer.java
@Override public boolean equals(final Object other) { if (!(other instanceof AbstractDocumentTransformer)) { return false; }/*from w w w . j a v a 2 s . c om*/ return new EqualsBuilder().appendSuper(super.equals(other)).isEquals(); }
From source file:com.hp.ov.sdk.dto.PowerConnection.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; PowerConnection that = (PowerConnection) obj; return new EqualsBuilder().append(connectionUri, that.connectionUri) .append(deviceConnection, that.deviceConnection).append(sourceConnection, that.sourceConnection) .isEquals();/* www .j a va 2s .co m*/ }
From source file:io.netlibs.bgp.protocol.capabilities.MultiProtocolCapability.java
@Override protected boolean equalsSubclass(Capability other) { MultiProtocolCapability mp = (MultiProtocolCapability) other; return (new EqualsBuilder()).append(getAfi(), mp.getAfi()).append(getSafi(), mp.getSafi()).isEquals(); }
From source file:com.comcast.cdn.traffic_control.traffic_router.core.cache.Cache.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } else if (obj instanceof Cache) { final Cache rhs = (Cache) obj; return new EqualsBuilder().append(getId(), rhs.getId()).isEquals(); } else {//from w w w. j a va2 s .c o m return false; } }
From source file:com.github.catageek.bytecart.routing.RoutingTableContent.java
@Override public boolean equals(Object o) { if (o == null) { return false; }// w w w. j av a 2s . c o m if (o == this) { return true; } if (!(o instanceof RoutingTableContent<?>)) { return false; } RoutingTableContent<?> rhs = (RoutingTableContent<?>) o; return new EqualsBuilder().append(value(), rhs.value()).isEquals(); }