in cloudsigma2/src/main/java/org/jclouds/cloudsigma2/domain/IOStats.java [83:112]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
IOStats other = (IOStats) obj;
if (bytesReceived == null) {
if (other.bytesReceived != null)
return false;
} else if (!bytesReceived.equals(other.bytesReceived))
return false;
if (bytesSent == null) {
if (other.bytesSent != null)
return false;
} else if (!bytesSent.equals(other.bytesSent))
return false;
if (packetsReceived == null) {
if (other.packetsReceived != null)
return false;
} else if (!packetsReceived.equals(other.packetsReceived))
return false;
if (packetsSent == null) {
if (other.packetsSent != null)
return false;
} else if (!packetsSent.equals(other.packetsSent))
return false;
return true;
}