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

org.apache.jclouds.oneandone.rest.domain.AutoValue_Status Maven / Gradle / Ivy

The newest version!

package org.apache.jclouds.oneandone.rest.domain;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Status extends Status {

  private final Types.ServerState state;
  private final int percent;

  AutoValue_Status(
      Types.ServerState state,
      int percent) {
    if (state == null) {
      throw new NullPointerException("Null state");
    }
    this.state = state;
    this.percent = percent;
  }

  @Override
  public Types.ServerState state() {
    return state;
  }

  @Override
  public int percent() {
    return percent;
  }

  @Override
  public String toString() {
    return "Status{"
        + "state=" + state + ", "
        + "percent=" + percent
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Status) {
      Status that = (Status) o;
      return (this.state.equals(that.state()))
           && (this.percent == that.percent());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.state.hashCode();
    h *= 1000003;
    h ^= this.percent;
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy