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.norconex.collector.core.data.store.impl.mongo.MongoConnectionDetails.java
@Override public boolean equals(final Object other) { if (!(other instanceof MongoConnectionDetails)) { return false; }/* www. j av a 2 s . c o m*/ MongoConnectionDetails castOther = (MongoConnectionDetails) other; return new EqualsBuilder().append(port, castOther.port).append(host, castOther.host) .append(databaseName, castOther.databaseName).append(username, castOther.username) .append(password, castOther.password).isEquals(); }
From source file:de.qaware.chronix.matrix.ColMajorCell.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*w w w . ja va 2s. co m*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } ColMajorCell rhs = (ColMajorCell) obj; return new EqualsBuilder().append(this.col, rhs.col).append(this.row, rhs.row).isEquals(); }
From source file:com.adobe.acs.commons.httpcache.config.impl.keys.KeyValueCacheKey.java
@Override public boolean equals(Object o) { if (!super.equals(o)) { return false; }//w w w.ja va 2 s.co m KeyValueCacheKey that = (KeyValueCacheKey) o; if (that == null) { return false; } return new EqualsBuilder().append(getUri(), that.getUri()).append(cacheKeyId, that.cacheKeyId) .append(getAuthenticationRequirement(), that.getAuthenticationRequirement()).isEquals(); }
From source file:it.f2informatica.core.validator.utils.ErrorMessage.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ErrorMessage that = (ErrorMessage) o; return new EqualsBuilder().append(this.errorCode, that.getErrorCode()).isEquals(); }
From source file:com.aqnote.app.wifianalyzer.wifi.model.WiFiConnection.java
@Override public boolean equals(Object other) { if (this == other) { return true; }//from w w w.j a va 2s . c o m if (other == null || getClass() != other.getClass()) { return false; } return new EqualsBuilder().append(getSSID(), ((WiFiConnection) other).getSSID()) .append(getBSSID(), ((WiFiConnection) other).getBSSID()).isEquals(); }
From source file:com.hp.ov.sdk.dto.SwitchStatistics.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; SwitchStatistics that = (SwitchStatistics) obj; return new EqualsBuilder().append(genericPortStatistics, that.genericPortStatistics) .append(moduleStatistics, that.moduleStatistics).append(switchId, that.switchId) .append(type, that.type).isEquals(); }
From source file:de.ailis.usb4java.DeviceId.java
@Override public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; final DeviceId other = (DeviceId) obj; return new EqualsBuilder().append(this.busNumber, other.busNumber) .append(this.deviceAddress, other.deviceAddress).append(this.portNumber, other.portNumber) .append(this.deviceDescriptor, other.deviceDescriptor).isEquals(); }
From source file:de.kaiserpfalzEdv.commons.dto.IdentityDTO.java
@Override public boolean equals(final Object other) { if (other == this) return true; if (other == null) return false; if (!Identity.class.isAssignableFrom(other.getClass())) return false; @SuppressWarnings("unchecked") Identity<UUID> that = (Identity<UUID>) other; return new EqualsBuilder().append(getId(), that.getId()).build(); }
From source file:com.hp.ov.sdk.dto.ConnectionBootTemplate.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; ConnectionBootTemplate that = (ConnectionBootTemplate) obj; return new EqualsBuilder().append(priority, that.priority).append(specifyBootTarget, that.specifyBootTarget) .append(targets, that.targets).isEquals(); }
From source file:com.galenframework.ide.devices.tasks.DeviceTask.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; } else if (obj == this) { return true; } else if (!(obj instanceof DeviceTask)) { return false; } else {//from w w w . ja va 2s .com DeviceTask rhs = (DeviceTask) obj; return new EqualsBuilder().append(rhs.taskId, this.taskId).append(rhs.name, this.name) .append(rhs.commands, this.commands).isEquals(); } }