Example usage for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder

List of usage examples for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder.

Prototype

public EqualsBuilder() 

Source Link

Document

Constructor for EqualsBuilder.

Starts off assuming that equals is true.

Usage

From source file:com.qcadoo.mes.operationTimeCalculations.dto.OperationTimes.java

@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }//from  w  w w. j  a  va 2  s.co  m
    if (obj == null || !(obj instanceof OperationTimes)) {
        return false;
    }
    OperationTimes other = (OperationTimes) obj;
    return new EqualsBuilder().append(operation, other.operation).append(times, other.times).isEquals();
}

From source file:com.hp.ov.sdk.dto.serverhardwaretype.StorageCapabilities.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;

    if (obj instanceof StorageCapabilities) {
        StorageCapabilities that = (StorageCapabilities) obj;

        return new EqualsBuilder().append(controllerModes, that.controllerModes)
                .append(driveTechnologies, that.driveTechnologies).append(maximumDrives, that.maximumDrives)
                .append(raidLevels, that.raidLevels).isEquals();
    }/*from   w w  w  .  java 2 s .  com*/
    return false;
}

From source file:com.andrewkroh.cicso.rtp.Destination.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//www.ja  v  a 2 s .  com

    if (obj == this) {
        return true;
    }

    if (obj.getClass() != getClass()) {
        return false;
    }

    Destination rhs = (Destination) obj;
    return new EqualsBuilder().append(host, rhs.host).append(port, rhs.port).isEquals();
}

From source file:com.stitchgalaxy.domain.ProductLocalization.java

public boolean sameValueAs(ProductLocalization other) {
    return other != null && new EqualsBuilder().append(this.locale, other.locale).append(this.name, other.name)
            .append(this.description, other.description).append(this.tags, other.tags).isEquals();
}

From source file:com.mycsense.carbondb.domain.RelationType.java

@Override
public boolean equals(Object obj) {
    if (!(obj instanceof RelationType))
        return false;
    if (obj == this)
        return true;

    RelationType rhs = (RelationType) obj;
    return new EqualsBuilder().append(id, rhs.getId()).isEquals();
}

From source file:io.netlibs.bgp.rib.RouteWithdrawn.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;
    if (obj == null)
        return false;
    if (getClass() != obj.getClass())
        return false;

    RouteWithdrawn other = (RouteWithdrawn) obj;

    return (new EqualsBuilder()).append(getRoute(), other.getRoute()).append(getPeerName(), other.getPeerName())
            .append(getSide(), other.getSide()).isEquals();
}

From source file:com.hp.ov.sdk.dto.EndpointReport.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;

    if (obj instanceof EndpointReport) {
        EndpointReport that = (EndpointReport) obj;

        return new EqualsBuilder().append(name, that.name).append(wwn, that.wwn).append(zones, that.zones)
                .append(aliases, that.aliases).append(status, that.status).isEquals();
    }//from   w w  w  .  j  a  va  2  s  .  co  m
    return false;
}

From source file:com.qcadoo.mes.deliveries.print.DeliveryProduct.java

@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }//www  . jav  a 2 s. c  o m
    if (obj == null || getClass() != obj.getClass()) {
        return false;
    }
    final DeliveryProduct other = (DeliveryProduct) obj;
    return new EqualsBuilder().append(deliveredProductId, other.deliveredProductId)
            .append(deliveredProductId, other.deliveredProductId).isEquals();
}

From source file:com.hp.ov.sdk.dto.DcbxInfo.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;

    if (obj == null || getClass() != obj.getClass())
        return false;

    DcbxInfo dcbxInfo = (DcbxInfo) obj;/*from  w  ww .  ja  v  a 2 s.c o m*/

    return new EqualsBuilder().append(dcbxApReason, dcbxInfo.dcbxApReason)
            .append(dcbxPfcReason, dcbxInfo.dcbxPfcReason).append(dcbxPgReason, dcbxInfo.dcbxPgReason)
            .append(dcbxStatus, dcbxInfo.dcbxStatus).isEquals();
}

From source file:com.galenframework.ide.devices.commands.DeviceClearCookiesCommand.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    } else if (obj == this) {
        return true;
    } else if (!(obj instanceof DeviceClearCookiesCommand)) {
        return false;
    } else {//from w w w  . jav  a 2s .com
        DeviceClearCookiesCommand rhs = (DeviceClearCookiesCommand) obj;
        return new EqualsBuilder().append(rhs.getCommandId(), this.getCommandId()).isEquals();
    }
}