Пример #1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof PipelineDescription == false) return false;
    PipelineDescription other = (PipelineDescription) obj;

    if (other.getPipelineId() == null ^ this.getPipelineId() == null) return false;
    if (other.getPipelineId() != null
        && other.getPipelineId().equals(this.getPipelineId()) == 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.getFields() == null ^ this.getFields() == null) return false;
    if (other.getFields() != null && other.getFields().equals(this.getFields()) == false)
      return false;
    if (other.getDescription() == null ^ this.getDescription() == null) return false;
    if (other.getDescription() != null
        && other.getDescription().equals(this.getDescription()) == false) return false;
    return true;
  }