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

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

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

The newest version!
package com.google.javascript.jscomp;

import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;

@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(@Nullable 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