org.graylog2.plugin.events.inputs.AutoValue_IOStateChangedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog2-plugin Show documentation
Show all versions of graylog2-plugin Show documentation
Graylog interfaces for plugin development
package org.graylog2.plugin.events.inputs;
import javax.annotation.Generated;
import org.graylog2.plugin.IOState;
import org.graylog2.plugin.IOState.Type;
import org.graylog2.plugin.Stoppable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IOStateChangedEvent extends IOStateChangedEvent {
private final Type oldState;
private final Type newState;
private final IOState changedState;
AutoValue_IOStateChangedEvent(
Type oldState,
Type newState,
IOState changedState) {
if (oldState == null) {
throw new NullPointerException("Null oldState");
}
this.oldState = oldState;
if (newState == null) {
throw new NullPointerException("Null newState");
}
this.newState = newState;
if (changedState == null) {
throw new NullPointerException("Null changedState");
}
this.changedState = changedState;
}
@Override
public Type oldState() {
return oldState;
}
@Override
public Type newState() {
return newState;
}
@Override
public IOState changedState() {
return changedState;
}
@Override
public String toString() {
return "IOStateChangedEvent{"
+ "oldState=" + oldState + ", "
+ "newState=" + newState + ", "
+ "changedState=" + changedState
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IOStateChangedEvent) {
IOStateChangedEvent> that = (IOStateChangedEvent>) o;
return (this.oldState.equals(that.oldState()))
&& (this.newState.equals(that.newState()))
&& (this.changedState.equals(that.changedState()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= oldState.hashCode();
h *= 1000003;
h ^= newState.hashCode();
h *= 1000003;
h ^= changedState.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy