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

edu.stanford.protege.webprotege.bulkop.AutoValue_NewAnnotationData Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package edu.stanford.protege.webprotege.bulkop;

import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.semanticweb.owlapi.model.OWLAnnotationProperty;

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

  private final OWLAnnotationProperty property;

  private final String value;

  private final String languageTag;

  AutoValue_NewAnnotationData(
      @Nullable OWLAnnotationProperty property,
      @Nullable String value,
      @Nullable String languageTag) {
    this.property = property;
    this.value = value;
    this.languageTag = languageTag;
  }

  @Nullable
  @Override
  protected OWLAnnotationProperty property() {
    return property;
  }

  @Nullable
  @Override
  protected String value() {
    return value;
  }

  @Nullable
  @Override
  protected String languageTag() {
    return languageTag;
  }

  @Override
  public String toString() {
    return "NewAnnotationData{"
        + "property=" + property + ", "
        + "value=" + value + ", "
        + "languageTag=" + languageTag
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NewAnnotationData) {
      NewAnnotationData that = (NewAnnotationData) o;
      return (this.property == null ? that.property() == null : this.property.equals(that.property()))
          && (this.value == null ? that.value() == null : this.value.equals(that.value()))
          && (this.languageTag == null ? that.languageTag() == null : this.languageTag.equals(that.languageTag()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy