public boolean equals()

in messages/src/main/java/com/epam/deltix/timebase/messages/schema/SchemaDescriptorChangeAction.java [298:319]


  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (!(obj instanceof SchemaDescriptorChangeAction)) return false;
    SchemaDescriptorChangeAction other =(SchemaDescriptorChangeAction)obj;
    if (hasPreviousState() != other.hasPreviousState()) return false;
    if (hasPreviousState() && !(getPreviousState().equals(other.getPreviousState()))) return false;
    if (hasNewState() != other.hasNewState()) return false;
    if (hasNewState() && !(getNewState().equals(other.getNewState()))) return false;
    if (hasChangeTypes() != other.hasChangeTypes()) return false;
    if (hasChangeTypes() && getChangeTypes() != other.getChangeTypes()) return false;
    if (hasDescriptorTransformation() != other.hasDescriptorTransformation()) return false;
    if (hasDescriptorTransformation() && !(getDescriptorTransformation().equals(other.getDescriptorTransformation()))) return false;
    if (hasFieldChangeActions() != other.hasFieldChangeActions()) return false;
    if (hasFieldChangeActions()) {
      if (getFieldChangeActions().size() != other.getFieldChangeActions().size()) return false;
      else for (int j = 0; j < getFieldChangeActions().size(); ++j) {
        if ((getFieldChangeActions().get(j) != null) != (other.getFieldChangeActions().get(j) != null)) return false;
        if (getFieldChangeActions().get(j) != null && !getFieldChangeActions().get(j).equals(other.getFieldChangeActions().get(j))) return false;
      }
    }
    return true;
  }