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

com.google.cloud.firestore.AutoValue_FieldPath 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 javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_FieldPath extends FieldPath {

  private final ImmutableList segments;

  AutoValue_FieldPath(
      ImmutableList segments) {
    if (segments == null) {
      throw new NullPointerException("Null segments");
    }
    this.segments = segments;
  }

  @Override
  ImmutableList getSegments() {
    return segments;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof FieldPath) {
      FieldPath that = (FieldPath) o;
      return this.segments.equals(that.getSegments());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= segments.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy