All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.testing.compile.AutoValue_Compiler Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
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;

  private final Optional> annotationProcessorPath;

  AutoValue_Compiler(
      JavaCompiler javaCompiler,
      ImmutableList processors,
      ImmutableList options,
      Optional> classPath,
      Optional> annotationProcessorPath) {
    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;
    if (annotationProcessorPath == null) {
      throw new NullPointerException("Null annotationProcessorPath");
    }
    this.annotationProcessorPath = annotationProcessorPath;
  }

  @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 Optional> annotationProcessorPath() {
    return annotationProcessorPath;
  }

  @Override
  public String toString() {
    return "Compiler{"
        + "javaCompiler=" + javaCompiler + ", "
        + "processors=" + processors + ", "
        + "options=" + options + ", "
        + "classPath=" + classPath + ", "
        + "annotationProcessorPath=" + annotationProcessorPath
        + "}";
  }

  @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())
          && this.annotationProcessorPath.equals(that.annotationProcessorPath());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= javaCompiler.hashCode();
    h$ *= 1000003;
    h$ ^= processors.hashCode();
    h$ *= 1000003;
    h$ ^= options.hashCode();
    h$ *= 1000003;
    h$ ^= classPath.hashCode();
    h$ *= 1000003;
    h$ ^= annotationProcessorPath.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy