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

org.graylog2.plugin.events.inputs.$AutoValue_IOStateChangedEvent Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version

package org.graylog2.plugin.events.inputs;

import javax.annotation.Generated;
import org.graylog2.plugin.IOState;
import org.graylog2.plugin.Stoppable;

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

  private final IOState.Type oldState;
  private final IOState.Type newState;
  private final IOState changedState;

  $AutoValue_IOStateChangedEvent(
      IOState.Type oldState,
      IOState.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 IOState.Type oldState() {
    return oldState;
  }

  @Override
  public IOState.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 ^= this.oldState.hashCode();
    h *= 1000003;
    h ^= this.newState.hashCode();
    h *= 1000003;
    h ^= this.changedState.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy