
org.apache.jclouds.oneandone.rest.domain.AutoValue_Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
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;
}
}