com.google.javascript.jscomp.colors.AutoValue_UnionColor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler Show documentation
Show all versions of closure-compiler 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.colors;
import com.google.common.collect.ImmutableCollection;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UnionColor extends UnionColor {
private final ImmutableCollection alternates;
AutoValue_UnionColor(
ImmutableCollection alternates) {
if (alternates == null) {
throw new NullPointerException("Null alternates");
}
this.alternates = alternates;
}
@Override
public ImmutableCollection getAlternates() {
return alternates;
}
@Override
public String toString() {
return "UnionColor{"
+ "alternates=" + alternates
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UnionColor) {
UnionColor that = (UnionColor) o;
return (this.alternates.equals(that.getAlternates()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.alternates.hashCode();
return h;
}
}