com.google.testing.compile.AutoValue_Compiler Maven / Gradle / Ivy
package com.google.testing.compile;
import com.google.common.collect.ImmutableList;
import java.io.File;
import java.util.Optional;
import javax.annotation.Generated;
import javax.annotation.processing.Processor;
import javax.tools.JavaCompiler;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Compiler extends Compiler {
private final JavaCompiler javaCompiler;
private final ImmutableList processors;
private final ImmutableList options;
private final Optional> classPath;
AutoValue_Compiler(
JavaCompiler javaCompiler,
ImmutableList processors,
ImmutableList options,
Optional> classPath) {
if (javaCompiler == null) {
throw new NullPointerException("Null javaCompiler");
}
this.javaCompiler = javaCompiler;
if (processors == null) {
throw new NullPointerException("Null processors");
}
this.processors = processors;
if (options == null) {
throw new NullPointerException("Null options");
}
this.options = options;
if (classPath == null) {
throw new NullPointerException("Null classPath");
}
this.classPath = classPath;
}
@Override
JavaCompiler javaCompiler() {
return javaCompiler;
}
@Override
public ImmutableList processors() {
return processors;
}
@Override
public ImmutableList options() {
return options;
}
@Override
public Optional> classPath() {
return classPath;
}
@Override
public String toString() {
return "Compiler{"
+ "javaCompiler=" + javaCompiler + ", "
+ "processors=" + processors + ", "
+ "options=" + options + ", "
+ "classPath=" + classPath
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Compiler) {
Compiler that = (Compiler) o;
return (this.javaCompiler.equals(that.javaCompiler()))
&& (this.processors.equals(that.processors()))
&& (this.options.equals(that.options()))
&& (this.classPath.equals(that.classPath()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.javaCompiler.hashCode();
h *= 1000003;
h ^= this.processors.hashCode();
h *= 1000003;
h ^= this.options.hashCode();
h *= 1000003;
h ^= this.classPath.hashCode();
return h;
}
}