com.google.cloud.storage.contrib.nio.AutoValue_OptionContentEncoding 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_OptionContentEncoding extends OptionContentEncoding {
private final String contentEncoding;
AutoValue_OptionContentEncoding(
String contentEncoding) {
if (contentEncoding == null) {
throw new NullPointerException("Null contentEncoding");
}
this.contentEncoding = contentEncoding;
}
@Override
String contentEncoding() {
return contentEncoding;
}
@Override
public String toString() {
return "OptionContentEncoding{"
+ "contentEncoding=" + contentEncoding
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OptionContentEncoding) {
OptionContentEncoding that = (OptionContentEncoding) o;
return this.contentEncoding.equals(that.contentEncoding());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= contentEncoding.hashCode();
return h$;
}
}