All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.protege.webprotege.forms.data.AutoValue_FormFieldDataDto Maven / Gradle / Ivy

package edu.stanford.protege.webprotege.forms.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.Page;
import edu.stanford.protege.webprotege.forms.field.FormFieldDescriptorDto;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_FormFieldDataDto extends FormFieldDataDto {

  private final FormFieldDescriptorDto formFieldDescriptor;

  private final Page formControlData;

  AutoValue_FormFieldDataDto(
      FormFieldDescriptorDto formFieldDescriptor,
      Page formControlData) {
    if (formFieldDescriptor == null) {
      throw new NullPointerException("Null formFieldDescriptor");
    }
    this.formFieldDescriptor = formFieldDescriptor;
    if (formControlData == null) {
      throw new NullPointerException("Null formControlData");
    }
    this.formControlData = formControlData;
  }

  @JsonProperty("field")
  @Nonnull
  @Override
  public FormFieldDescriptorDto getFormFieldDescriptor() {
    return formFieldDescriptor;
  }

  @Nonnull
  @JsonProperty("controlData")
  @Override
  public Page getFormControlData() {
    return formControlData;
  }

  @Override
  public String toString() {
    return "FormFieldDataDto{"
        + "formFieldDescriptor=" + formFieldDescriptor + ", "
        + "formControlData=" + formControlData
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof FormFieldDataDto) {
      FormFieldDataDto that = (FormFieldDataDto) o;
      return this.formFieldDescriptor.equals(that.getFormFieldDescriptor())
          && this.formControlData.equals(that.getFormControlData());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= formFieldDescriptor.hashCode();
    h$ *= 1000003;
    h$ ^= formControlData.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy