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

org.graylog2.users.events.$AutoValue_UserChangedEvent Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version


package org.graylog2.users.events;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_UserChangedEvent extends UserChangedEvent {

  private final String userId;

  $AutoValue_UserChangedEvent(
      String userId) {
    if (userId == null) {
      throw new NullPointerException("Null userId");
    }
    this.userId = userId;
  }

  @JsonProperty(value = "user_id")
  @Override
  public String userId() {
    return userId;
  }

  @Override
  public String toString() {
    return "UserChangedEvent{"
         + "userId=" + userId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UserChangedEvent) {
      UserChangedEvent that = (UserChangedEvent) o;
      return (this.userId.equals(that.userId()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy