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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations