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

com.google.javascript.jscomp.AutoValue_DependencyOptions Maven / Gradle / Ivy



package com.google.javascript.jscomp;

import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;

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

  private final DependencyOptions.DependencyMode mode;
  private final ImmutableList entryPoints;

  AutoValue_DependencyOptions(
      DependencyOptions.DependencyMode mode,
      ImmutableList entryPoints) {
    if (mode == null) {
      throw new NullPointerException("Null mode");
    }
    this.mode = mode;
    if (entryPoints == null) {
      throw new NullPointerException("Null entryPoints");
    }
    this.entryPoints = entryPoints;
  }

  @Override
  public DependencyOptions.DependencyMode getMode() {
    return mode;
  }

  @Override
  public ImmutableList getEntryPoints() {
    return entryPoints;
  }

  @Override
  public String toString() {
    return "DependencyOptions{"
         + "mode=" + mode + ", "
         + "entryPoints=" + entryPoints
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DependencyOptions) {
      DependencyOptions that = (DependencyOptions) o;
      return (this.mode.equals(that.getMode()))
           && (this.entryPoints.equals(that.getEntryPoints()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy