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

com.bekioui.maven.plugin.client.model.AutoValue_ContextResource Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version

package com.bekioui.maven.plugin.client.model;

import com.squareup.javapoet.TypeName;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ContextResource extends ContextResource {

  private final TypeName typeName;
  private final String className;
  private final Resource resource;

  AutoValue_ContextResource(
      TypeName typeName,
      String className,
      Resource resource) {
    if (typeName == null) {
      throw new NullPointerException("Null typeName");
    }
    this.typeName = typeName;
    if (className == null) {
      throw new NullPointerException("Null className");
    }
    this.className = className;
    if (resource == null) {
      throw new NullPointerException("Null resource");
    }
    this.resource = resource;
  }

  @Override
  public TypeName typeName() {
    return typeName;
  }

  @Override
  public String className() {
    return className;
  }

  @Override
  public Resource resource() {
    return resource;
  }

  @Override
  public String toString() {
    return "ContextResource{"
        + "typeName=" + typeName + ", "
        + "className=" + className + ", "
        + "resource=" + resource
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ContextResource) {
      ContextResource that = (ContextResource) o;
      return (this.typeName.equals(that.typeName()))
           && (this.className.equals(that.className()))
           && (this.resource.equals(that.resource()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= typeName.hashCode();
    h *= 1000003;
    h ^= className.hashCode();
    h *= 1000003;
    h ^= resource.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy