public boolean equals()

in core/src/main/java/gnu/trove/TLongArrayList.java [535:556]


  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    else if (other instanceof TLongArrayList) {
      TLongArrayList that = (TLongArrayList)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;
    }
  }