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

org.graylog.events.notifications.AutoValue_NotificationGracePeriodService_CacheKey Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.events.notifications;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NotificationGracePeriodService_CacheKey extends NotificationGracePeriodService.CacheKey {

  private final String eventDefinitionId;

  private final String notificationId;

  private final String eventKey;

  AutoValue_NotificationGracePeriodService_CacheKey(
      String eventDefinitionId,
      String notificationId,
      String eventKey) {
    if (eventDefinitionId == null) {
      throw new NullPointerException("Null eventDefinitionId");
    }
    this.eventDefinitionId = eventDefinitionId;
    if (notificationId == null) {
      throw new NullPointerException("Null notificationId");
    }
    this.notificationId = notificationId;
    if (eventKey == null) {
      throw new NullPointerException("Null eventKey");
    }
    this.eventKey = eventKey;
  }

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

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

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

  @Override
  public String toString() {
    return "CacheKey{"
        + "eventDefinitionId=" + eventDefinitionId + ", "
        + "notificationId=" + notificationId + ", "
        + "eventKey=" + eventKey
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NotificationGracePeriodService.CacheKey) {
      NotificationGracePeriodService.CacheKey that = (NotificationGracePeriodService.CacheKey) o;
      return this.eventDefinitionId.equals(that.eventDefinitionId())
          && this.notificationId.equals(that.notificationId())
          && this.eventKey.equals(that.eventKey());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= eventDefinitionId.hashCode();
    h$ *= 1000003;
    h$ ^= notificationId.hashCode();
    h$ *= 1000003;
    h$ ^= eventKey.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy