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