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

edu.stanford.protege.webprotege.forms.field.AutoValue_EntityNameControlDescriptor Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.LanguageMap;
import edu.stanford.protege.webprotege.criteria.CompositeRootCriteria;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  private final LanguageMap placeholder;

  private final CompositeRootCriteria matchCriteriaInternal;

  AutoValue_EntityNameControlDescriptor(
      LanguageMap placeholder,
      @Nullable CompositeRootCriteria matchCriteriaInternal) {
    if (placeholder == null) {
      throw new NullPointerException("Null placeholder");
    }
    this.placeholder = placeholder;
    this.matchCriteriaInternal = matchCriteriaInternal;
  }

  @Nonnull
  @JsonProperty("placeholder")
  @Override
  public LanguageMap getPlaceholder() {
    return placeholder;
  }

  @Nullable
  @JsonProperty("criteria")
  @Override
  protected CompositeRootCriteria getMatchCriteriaInternal() {
    return matchCriteriaInternal;
  }

  @Override
  public String toString() {
    return "EntityNameControlDescriptor{"
        + "placeholder=" + placeholder + ", "
        + "matchCriteriaInternal=" + matchCriteriaInternal
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityNameControlDescriptor) {
      EntityNameControlDescriptor that = (EntityNameControlDescriptor) o;
      return this.placeholder.equals(that.getPlaceholder())
          && (this.matchCriteriaInternal == null ? that.getMatchCriteriaInternal() == null : this.matchCriteriaInternal.equals(that.getMatchCriteriaInternal()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= placeholder.hashCode();
    h$ *= 1000003;
    h$ ^= (matchCriteriaInternal == null) ? 0 : matchCriteriaInternal.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy