com.google.javascript.jscomp.modules.AutoValue_ClosureRequireProcessor_Require 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.
package com.google.javascript.jscomp.modules;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ClosureRequireProcessor_Require extends ClosureRequireProcessor.Require {
private final String localName;
private final Import importRecord;
private final Binding.CreatedBy createdBy;
AutoValue_ClosureRequireProcessor_Require(
String localName,
Import importRecord,
Binding.CreatedBy createdBy) {
if (localName == null) {
throw new NullPointerException("Null localName");
}
this.localName = localName;
if (importRecord == null) {
throw new NullPointerException("Null importRecord");
}
this.importRecord = importRecord;
if (createdBy == null) {
throw new NullPointerException("Null createdBy");
}
this.createdBy = createdBy;
}
@Override
String localName() {
return localName;
}
@Override
Import importRecord() {
return importRecord;
}
@Override
Binding.CreatedBy createdBy() {
return createdBy;
}
@Override
public String toString() {
return "Require{"
+ "localName=" + localName + ", "
+ "importRecord=" + importRecord + ", "
+ "createdBy=" + createdBy
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ClosureRequireProcessor.Require) {
ClosureRequireProcessor.Require that = (ClosureRequireProcessor.Require) o;
return (this.localName.equals(that.localName()))
&& (this.importRecord.equals(that.importRecord()))
&& (this.createdBy.equals(that.createdBy()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= localName.hashCode();
h$ *= 1000003;
h$ ^= importRecord.hashCode();
h$ *= 1000003;
h$ ^= createdBy.hashCode();
return h$;
}
}