com.google.cloud.firestore.AutoValue_ResourcePath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-firestore Show documentation
Show all versions of google-cloud-firestore Show documentation
Java idiomatic client for Google Cloud Firestore.
package com.google.cloud.firestore;
import com.google.common.collect.ImmutableList;
import com.google.firestore.v1.DatabaseRootName;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ResourcePath extends ResourcePath {
private final ImmutableList segments;
private final DatabaseRootName databaseName;
AutoValue_ResourcePath(
ImmutableList segments,
DatabaseRootName databaseName) {
if (segments == null) {
throw new NullPointerException("Null segments");
}
this.segments = segments;
if (databaseName == null) {
throw new NullPointerException("Null databaseName");
}
this.databaseName = databaseName;
}
@Override
ImmutableList getSegments() {
return segments;
}
@Override
DatabaseRootName getDatabaseName() {
return databaseName;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ResourcePath) {
ResourcePath that = (ResourcePath) o;
return this.segments.equals(that.getSegments())
&& this.databaseName.equals(that.getDatabaseName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= segments.hashCode();
h$ *= 1000003;
h$ ^= databaseName.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy