com.google.javascript.jscomp.AutoValue_DependencyOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-linter Show documentation
Show all versions of closure-compiler-linter Show documentation
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.
This binary checks for style issues such as incorrect or missing JSDoc
usage, and missing goog.require() statements. It does not do more advanced
checks such as typechecking.
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 ^= this.mode.hashCode();
h *= 1000003;
h ^= this.entryPoints.hashCode();
return h;
}
}