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

    if (obj instanceof LogStream == false) return false;
    LogStream other = (LogStream) obj;
    if (other.getLogStreamName() == null ^ this.getLogStreamName() == null) return false;
    if (other.getLogStreamName() != null
        && other.getLogStreamName().equals(this.getLogStreamName()) == false) return false;
    if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false;
    if (other.getCreationTime() != null
        && other.getCreationTime().equals(this.getCreationTime()) == false) return false;
    if (other.getFirstEventTimestamp() == null ^ this.getFirstEventTimestamp() == null)
      return false;
    if (other.getFirstEventTimestamp() != null
        && other.getFirstEventTimestamp().equals(this.getFirstEventTimestamp()) == false)
      return false;
    if (other.getLastEventTimestamp() == null ^ this.getLastEventTimestamp() == null) return false;
    if (other.getLastEventTimestamp() != null
        && other.getLastEventTimestamp().equals(this.getLastEventTimestamp()) == false)
      return false;
    if (other.getLastIngestionTime() == null ^ this.getLastIngestionTime() == null) return false;
    if (other.getLastIngestionTime() != null
        && other.getLastIngestionTime().equals(this.getLastIngestionTime()) == false) return false;
    if (other.getUploadSequenceToken() == null ^ this.getUploadSequenceToken() == null)
      return false;
    if (other.getUploadSequenceToken() != null
        && other.getUploadSequenceToken().equals(this.getUploadSequenceToken()) == false)
      return false;
    if (other.getArn() == null ^ this.getArn() == null) return false;
    if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false;
    if (other.getStoredBytes() == null ^ this.getStoredBytes() == null) return false;
    if (other.getStoredBytes() != null
        && other.getStoredBytes().equals(this.getStoredBytes()) == false) return false;
    return true;
  }