class FieldPath {

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    FieldPath fieldPath = (FieldPath) o;

    return internalPath.equals(fieldPath.internalPath);
  }

  private  FieldPath(List<String> segments);
  private  FieldPath(com.google.firebase.firestore.model.FieldPath internalPath);

}