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