org.graylog2.users.events.$AutoValue_UserDeletedEvent Maven / Gradle / Ivy
package org.graylog2.users.events;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_UserDeletedEvent extends UserDeletedEvent {
private final String userId;
private final String userName;
$AutoValue_UserDeletedEvent(
String userId,
String userName) {
if (userId == null) {
throw new NullPointerException("Null userId");
}
this.userId = userId;
if (userName == null) {
throw new NullPointerException("Null userName");
}
this.userName = userName;
}
@JsonProperty("user_id")
@Override
public String userId() {
return userId;
}
@JsonProperty("user_name")
@Override
public String userName() {
return userName;
}
@Override
public String toString() {
return "UserDeletedEvent{"
+ "userId=" + userId + ", "
+ "userName=" + userName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UserDeletedEvent) {
UserDeletedEvent that = (UserDeletedEvent) o;
return this.userId.equals(that.userId())
&& this.userName.equals(that.userName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= userId.hashCode();
h$ *= 1000003;
h$ ^= userName.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy