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

com.github.longdt.vertxservice.processor.AutoValue_ServiceDeclaration Maven / Gradle / Ivy

Go to download

A lightweight replacement for vertx-service-proxy. This library is highly optimized for vertx java

There is a newer version: 1.1.1
Show newest version
package com.github.longdt.vertxservice.processor;

import java.util.List;
import javax.annotation.processing.Generated;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;

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

  private final TypeElement target;

  private final List methods;

  AutoValue_ServiceDeclaration(
      TypeElement target,
      List methods) {
    if (target == null) {
      throw new NullPointerException("Null target");
    }
    this.target = target;
    if (methods == null) {
      throw new NullPointerException("Null methods");
    }
    this.methods = methods;
  }

  @Override
  TypeElement target() {
    return target;
  }

  @Override
  List methods() {
    return methods;
  }

  @Override
  public String toString() {
    return "ServiceDeclaration{"
        + "target=" + target + ", "
        + "methods=" + methods
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ServiceDeclaration) {
      ServiceDeclaration that = (ServiceDeclaration) o;
      return this.target.equals(that.target())
          && this.methods.equals(that.methods());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= target.hashCode();
    h$ *= 1000003;
    h$ ^= methods.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy