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

feast.common.logging.entry.AutoValue_LogResource Maven / Gradle / Ivy

There is a newer version: 0.26.3
Show newest version
package feast.common.logging.entry;

import javax.annotation.Generated;

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

  private final LogResource.ResourceType type;

  private final String id;

  AutoValue_LogResource(
      LogResource.ResourceType type,
      String id) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
  }

  @Override
  public LogResource.ResourceType getType() {
    return type;
  }

  @Override
  public String getId() {
    return id;
  }

  @Override
  public String toString() {
    return "LogResource{"
         + "type=" + type + ", "
         + "id=" + id
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LogResource) {
      LogResource that = (LogResource) o;
      return this.type.equals(that.getType())
          && this.id.equals(that.getId());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy