public boolean equals()

in src/main/java/com/google/firebase/database/core/view/QueryParams.java [321:363]


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

    QueryParams that = (QueryParams) o;

    if (limit != null ? !limit.equals(that.limit) : that.limit != null) {
      return false;
    }
    if (index != null ? !index.equals(that.index) : that.index != null) {
      return false;
    }
    if (indexEndName != null
        ? !indexEndName.equals(that.indexEndName)
        : that.indexEndName != null) {
      return false;
    }
    if (indexEndValue != null
        ? !indexEndValue.equals(that.indexEndValue)
        : that.indexEndValue != null) {
      return false;
    }
    if (indexStartName != null
        ? !indexStartName.equals(that.indexStartName)
        : that.indexStartName != null) {
      return false;
    }
    if (indexStartValue != null
        ? !indexStartValue.equals(that.indexStartValue)
        : that.indexStartValue != null) {
      return false;
    }
    // viewFrom might be null, but we really want to compare left vs right
    if (isViewFromLeft() != that.isViewFromLeft()) {
      return false;
    }

    return true;
  }