示例#1
0
  @Override
  public boolean equals(final Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    final AnalysisBuilder that = (AnalysisBuilder) o;

    if (analysisDate != null
        ? !analysisDate.equals(that.analysisDate)
        : that.analysisDate != null) {
      return false;
    }
    if (biologicalSamples != null
        ? !biologicalSamples.equals(that.biologicalSamples)
        : that.biologicalSamples != null) {
      return false;
    }
    if (reportData != null ? !reportData.equals(that.reportData) : that.reportData != null) {
      return false;
    }
    if (scaffoldVersion != null
        ? !scaffoldVersion.equals(that.scaffoldVersion)
        : that.scaffoldVersion != null) {
      return false;
    }

    return true;
  }
示例#2
0
 @Override
 public int hashCode() {
   int result = reportData != null ? reportData.hashCode() : 0;
   result = 31 * result + (scaffoldVersion != null ? scaffoldVersion.hashCode() : 0);
   result = 31 * result + (analysisDate != null ? analysisDate.hashCode() : 0);
   result = 31 * result + (biologicalSamples != null ? biologicalSamples.hashCode() : 0);
   return result;
 }