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

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

There is a newer version: 0.6.5
Show newest version

package net.spals.appbuilder.graph.model;

import java.util.Optional;
import javax.annotation.Generated;

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

  private final IServiceGraphVertex delegate;
  private final Optional> providerSource;

  AutoValue_ServiceDAGVertex(
      IServiceGraphVertex delegate,
      Optional> providerSource) {
    if (delegate == null) {
      throw new NullPointerException("Null delegate");
    }
    this.delegate = delegate;
    if (providerSource == null) {
      throw new NullPointerException("Null providerSource");
    }
    this.providerSource = providerSource;
  }

  @Override
  IServiceGraphVertex getDelegate() {
    return delegate;
  }

  @Override
  public Optional> getProviderSource() {
    return providerSource;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ServiceDAGVertex) {
      ServiceDAGVertex that = (ServiceDAGVertex) o;
      return (this.delegate.equals(that.getDelegate()))
           && (this.providerSource.equals(that.getProviderSource()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy