public boolean equals()

in core/src/main/java/gnu/trove/TIntArrayList.java [548:569]


  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    else if (other instanceof TIntArrayList) {
      TIntArrayList that = (TIntArrayList)other;
      if (that.size() != size()) {
        return false;
      }
      else {
        for (int i = _pos; i-- > 0; ) {
          if (_data[i] != that._data[i]) {
            return false;
          }
        }
        return true;
      }
    }
    else {
      return false;
    }
  }