Exemple #1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof RaidArray == false) return false;
    RaidArray other = (RaidArray) obj;
    if (other.getRaidArrayId() == null ^ this.getRaidArrayId() == null) return false;
    if (other.getRaidArrayId() != null
        && other.getRaidArrayId().equals(this.getRaidArrayId()) == false) return false;
    if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false;
    if (other.getInstanceId() != null
        && other.getInstanceId().equals(this.getInstanceId()) == false) return false;
    if (other.getName() == null ^ this.getName() == null) return false;
    if (other.getName() != null && other.getName().equals(this.getName()) == false) return false;
    if (other.getRaidLevel() == null ^ this.getRaidLevel() == null) return false;
    if (other.getRaidLevel() != null && other.getRaidLevel().equals(this.getRaidLevel()) == false)
      return false;
    if (other.getNumberOfDisks() == null ^ this.getNumberOfDisks() == null) return false;
    if (other.getNumberOfDisks() != null
        && other.getNumberOfDisks().equals(this.getNumberOfDisks()) == false) return false;
    if (other.getSize() == null ^ this.getSize() == null) return false;
    if (other.getSize() != null && other.getSize().equals(this.getSize()) == false) return false;
    if (other.getDevice() == null ^ this.getDevice() == null) return false;
    if (other.getDevice() != null && other.getDevice().equals(this.getDevice()) == false)
      return false;
    if (other.getMountPoint() == null ^ this.getMountPoint() == null) return false;
    if (other.getMountPoint() != null
        && other.getMountPoint().equals(this.getMountPoint()) == false) return false;
    if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false;
    if (other.getAvailabilityZone() != null
        && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false;
    if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false;
    if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
      return false;
    if (other.getStackId() == null ^ this.getStackId() == null) return false;
    if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false)
      return false;
    if (other.getVolumeType() == null ^ this.getVolumeType() == null) return false;
    if (other.getVolumeType() != null
        && other.getVolumeType().equals(this.getVolumeType()) == false) return false;
    if (other.getIops() == null ^ this.getIops() == null) return false;
    if (other.getIops() != null && other.getIops().equals(this.getIops()) == false) return false;
    return true;
  }