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

net.spals.appbuilder.graph.model.AutoValue_ServiceGraphVertex Maven / Gradle / Ivy

There is a newer version: 0.6.5
Show newest version

package net.spals.appbuilder.graph.model;

import com.google.inject.Key;
import javax.annotation.Generated;

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

  private final Key guiceKey;
  private final T serviceInstance;

  AutoValue_ServiceGraphVertex(
      Key guiceKey,
      T serviceInstance) {
    if (guiceKey == null) {
      throw new NullPointerException("Null guiceKey");
    }
    this.guiceKey = guiceKey;
    if (serviceInstance == null) {
      throw new NullPointerException("Null serviceInstance");
    }
    this.serviceInstance = serviceInstance;
  }

  @Override
  public Key getGuiceKey() {
    return guiceKey;
  }

  @Override
  public T getServiceInstance() {
    return serviceInstance;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ServiceGraphVertex) {
      ServiceGraphVertex that = (ServiceGraphVertex) o;
      return (this.guiceKey.equals(that.getGuiceKey()))
           && (this.serviceInstance.equals(that.getServiceInstance()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.guiceKey.hashCode();
    h *= 1000003;
    h ^= this.serviceInstance.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy