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

edu.stanford.protege.webprotege.perspective.AutoValue_PerspectiveLayout Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.perspective;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  private final PerspectiveId perspectiveId;

  private final Node layoutInternal;

  AutoValue_PerspectiveLayout(
      PerspectiveId perspectiveId,
      @Nullable Node layoutInternal) {
    if (perspectiveId == null) {
      throw new NullPointerException("Null perspectiveId");
    }
    this.perspectiveId = perspectiveId;
    this.layoutInternal = layoutInternal;
  }

  @JsonProperty("perspectiveId")
  @Nonnull
  @Override
  public PerspectiveId getPerspectiveId() {
    return perspectiveId;
  }

  @JsonProperty("layout")
  @Nullable
  @Override
  protected Node getLayoutInternal() {
    return layoutInternal;
  }

  @Override
  public String toString() {
    return "PerspectiveLayout{"
        + "perspectiveId=" + perspectiveId + ", "
        + "layoutInternal=" + layoutInternal
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PerspectiveLayout) {
      PerspectiveLayout that = (PerspectiveLayout) o;
      return this.perspectiveId.equals(that.getPerspectiveId())
          && (this.layoutInternal == null ? that.getLayoutInternal() == null : this.layoutInternal.equals(that.getLayoutInternal()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy