Search in sources :

Example 81 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project coprhd-controller by CoprHD.

the class NetworkAdapter method equalsNetworkAdapter.

public boolean equalsNetworkAdapter(NetworkAdapter adapter) {
    if (adapter == this) {
        return true;
    }
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(name, adapter.name);
    builder.append(ipAddress, adapter.ipAddress);
    builder.append(ip6Address, adapter.ip6Address);
    builder.append(subnetMask, adapter.subnetMask);
    builder.append(macAddress, adapter.macAddress);
    return builder.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 82 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project coprhd-controller by CoprHD.

the class FcTarget method equals.

@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof FcTarget)) {
        return false;
    }
    FcTarget target = (FcTarget) obj;
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(scsiHost, target.scsiHost);
    builder.append(scsiChannel, target.scsiChannel);
    builder.append(scsiId, target.scsiId);
    builder.append(nodeName, target.nodeName);
    builder.append(portName, target.portName);
    return builder.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 83 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project coprhd-controller by CoprHD.

the class StringOption method equals.

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof StringOption)) {
        return false;
    }
    StringOption other = (StringOption) obj;
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(id, other.id);
    return builder.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 84 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project coprhd-controller by CoprHD.

the class IScsiHost method equals.

@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof IScsiHost)) {
        return false;
    }
    IScsiHost host = (IScsiHost) obj;
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(hostId, host.hostId);
    builder.append(state, host.state);
    builder.append(transport, host.transport);
    builder.append(initiatorName, host.initiatorName);
    builder.append(ipAddress, host.ipAddress);
    builder.append(hwAddress, host.hwAddress);
    builder.append(netdev, host.netdev);
    builder.append(sessions, host.sessions);
    return builder.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 85 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project vladmihalcea.wordpress.com by vladmihalcea.

the class Product method equals.

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof Product)) {
        return false;
    }
    Product that = (Product) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(name, that.getName());
    eb.append(company, that.getCompany());
    return eb.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Aggregations

EqualsBuilder (org.apache.commons.lang.builder.EqualsBuilder)95 ZooKeeper (org.apache.zookeeper.ZooKeeper)1 Product (org.candlepin.model.Product)1 AbstractStepMeta (org.pentaho.di.core.util.AbstractStepMeta)1 IPentahoRole (org.pentaho.platform.api.engine.security.userroledao.IPentahoRole)1 IPentahoUser (org.pentaho.platform.api.engine.security.userroledao.IPentahoUser)1