All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.firestore.AutoValue_ResourcePath Maven / Gradle / Ivy

There is a newer version: 3.29.1
Show newest version
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