
org.jclouds.googlecomputeengine.domain.AutoValue_KeyValuePair 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.googlecomputeengine.domain;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_KeyValuePair extends KeyValuePair {
private final String key;
private final String value;
AutoValue_KeyValuePair(
String key,
String value) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@Override
public String key() {
return key;
}
@Override
public String value() {
return value;
}
@Override
public String toString() {
return "KeyValuePair{"
+ "key=" + key + ", "
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof KeyValuePair) {
KeyValuePair that = (KeyValuePair) o;
return (this.key.equals(that.key()))
&& (this.value.equals(that.value()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.key.hashCode();
h *= 1000003;
h ^= this.value.hashCode();
return h;
}
}