com.google.cloud.storage.contrib.nio.AutoValue_OptionUserMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-nio Show documentation
Show all versions of google-cloud-nio Show documentation
FileSystemProvider for Java NIO to access Google Cloud Storage transparently.
package com.google.cloud.storage.contrib.nio;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_OptionUserMetadata extends OptionUserMetadata {
private final String key;
private final String value;
AutoValue_OptionUserMetadata(
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
String key() {
return key;
}
@Override
String value() {
return value;
}
@Override
public String toString() {
return "OptionUserMetadata{"
+ "key=" + key + ", "
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OptionUserMetadata) {
OptionUserMetadata that = (OptionUserMetadata) o;
return this.key.equals(that.key())
&& this.value.equals(that.value());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= value.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy