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

edu.stanford.protege.webprotege.viz.AutoValue_EntityGraphSettings Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final ImmutableList filters;

  private final double rankSpacing;

  AutoValue_EntityGraphSettings(
      ImmutableList filters,
      double rankSpacing) {
    if (filters == null) {
      throw new NullPointerException("Null filters");
    }
    this.filters = filters;
    this.rankSpacing = rankSpacing;
  }

  @Nonnull
  @JsonProperty("filters")
  @Override
  public ImmutableList getFilters() {
    return filters;
  }

  @JsonProperty("rankSpacing")
  @Override
  public double getRankSpacing() {
    return rankSpacing;
  }

  @Override
  public String toString() {
    return "EntityGraphSettings{"
        + "filters=" + filters + ", "
        + "rankSpacing=" + rankSpacing
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityGraphSettings) {
      EntityGraphSettings that = (EntityGraphSettings) o;
      return this.filters.equals(that.getFilters())
          && Double.doubleToLongBits(this.rankSpacing) == Double.doubleToLongBits(that.getRankSpacing());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= filters.hashCode();
    h$ *= 1000003;
    h$ ^= (int) ((Double.doubleToLongBits(rankSpacing) >>> 32) ^ Double.doubleToLongBits(rankSpacing));
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy