
org.jclouds.digitalocean2.domain.AutoValue_Kernel 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.jclouds.digitalocean2.domain;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Kernel extends Kernel {
private final int id;
private final String name;
private final String version;
AutoValue_Kernel(
int id,
String name,
String version) {
this.id = id;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (version == null) {
throw new NullPointerException("Null version");
}
this.version = version;
}
@Override
public int id() {
return id;
}
@Override
public String name() {
return name;
}
@Override
public String version() {
return version;
}
@Override
public String toString() {
return "Kernel{"
+ "id=" + id + ", "
+ "name=" + name + ", "
+ "version=" + version
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Kernel) {
Kernel that = (Kernel) o;
return (this.id == that.id())
&& (this.name.equals(that.name()))
&& (this.version.equals(that.version()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id;
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= this.version.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy