com.google.javascript.jscomp.AutoValue_ModuleIdentifier 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 javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ModuleIdentifier extends ModuleIdentifier {
private final String name;
private final String closureNamespace;
private final String moduleName;
AutoValue_ModuleIdentifier(
String name,
String closureNamespace,
String moduleName) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (closureNamespace == null) {
throw new NullPointerException("Null closureNamespace");
}
this.closureNamespace = closureNamespace;
if (moduleName == null) {
throw new NullPointerException("Null moduleName");
}
this.moduleName = moduleName;
}
@Override
public String getName() {
return name;
}
@Override
public String getClosureNamespace() {
return closureNamespace;
}
@Override
public String getModuleName() {
return moduleName;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModuleIdentifier) {
ModuleIdentifier that = (ModuleIdentifier) o;
return (this.name.equals(that.getName()))
&& (this.closureNamespace.equals(that.getClosureNamespace()))
&& (this.moduleName.equals(that.getModuleName()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= this.closureNamespace.hashCode();
h *= 1000003;
h ^= this.moduleName.hashCode();
return h;
}
}