com.google.javascript.jscomp.AutoValue_NodeUtil_GoogRequire Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded 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.
The newest version!
package com.google.javascript.jscomp;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NodeUtil_GoogRequire extends NodeUtil.GoogRequire {
private final String namespace;
private final @Nullable String property;
AutoValue_NodeUtil_GoogRequire(
String namespace,
@Nullable String property) {
if (namespace == null) {
throw new NullPointerException("Null namespace");
}
this.namespace = namespace;
this.property = property;
}
@Override
public String namespace() {
return namespace;
}
@Override
public @Nullable String property() {
return property;
}
@Override
public String toString() {
return "GoogRequire{"
+ "namespace=" + namespace + ", "
+ "property=" + property
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof NodeUtil.GoogRequire) {
NodeUtil.GoogRequire that = (NodeUtil.GoogRequire) o;
return this.namespace.equals(that.namespace())
&& (this.property == null ? that.property() == null : this.property.equals(that.property()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= namespace.hashCode();
h$ *= 1000003;
h$ ^= (property == null) ? 0 : property.hashCode();
return h$;
}
}