@@ -110,15 +110,19 @@ public final HtmlTableCell getCellAt(final int rowIndex, final int columnIndex)
110110 }
111111
112112 /**
113- * @return an iterator over all the HtmlTableRow objects
113+ * Returns an iterator over all rows in this table.
114+ *
115+ * @return an iterator over all {@link HtmlTableRow} objects
114116 */
115117 private RowIterator getRowIterator () {
116118 return new RowIterator ();
117119 }
118120
119121 /**
120- * @return an immutable list containing all the HtmlTableRow objects
121- * @see #getRowIterator
122+ * Returns an immutable list of all rows in this table.
123+ *
124+ * @return an immutable list containing all {@link HtmlTableRow} objects
125+ * @see #getRowIterator()
122126 */
123127 public List <HtmlTableRow > getRows () {
124128 final List <HtmlTableRow > result = new ArrayList <>();
@@ -129,10 +133,12 @@ public List<HtmlTableRow> getRows() {
129133 }
130134
131135 /**
136+ * Returns the row at the specified index.
137+ *
132138 * @param index the 0-based index of the row
133- * @return the HtmlTableRow at the given index
139+ * @return the {@link HtmlTableRow} at the given index
134140 * @throws IndexOutOfBoundsException if there is no row at the given index
135- * @see #getRowIterator
141+ * @see #getRowIterator()
136142 */
137143 public HtmlTableRow getRow (final int index ) throws IndexOutOfBoundsException {
138144 int count = 0 ;
@@ -160,11 +166,11 @@ public final int getRowCount() {
160166 }
161167
162168 /**
163- * Finds and return the row with the specified id .
169+ * Returns the row with the specified identifier .
164170 *
165- * @param id the id of the row
166- * @return the row with the specified id
167- * @exception ElementNotFoundException If the row cannot be found.
171+ * @param id the row identifier
172+ * @return the row with the specified identifier
173+ * @throws ElementNotFoundException if the row cannot be found
168174 */
169175 public final HtmlTableRow getRowById (final String id ) throws ElementNotFoundException {
170176 for (final HtmlTableRow row : getRowIterator ()) {
@@ -355,24 +361,23 @@ private class RowIterator implements Iterator<HtmlTableRow>, Iterable<HtmlTableR
355361 }
356362
357363 /**
358- * @return {@code true} if there are more rows available
364+ * {@inheritDoc}
359365 */
360366 @ Override
361367 public boolean hasNext () {
362368 return nextRow_ != null ;
363369 }
364370
365371 /**
366- * @return the next row from this iterator
367- * @throws NoSuchElementException if no more rows are available
372+ * {@inheritDoc}
368373 */
369374 @ Override
370375 public HtmlTableRow next () throws NoSuchElementException {
371376 return nextRow ();
372377 }
373378
374379 /**
375- * Removes the current row from the underlying table.
380+ * {@inheritDoc}
376381 */
377382 @ Override
378383 public void remove () {
@@ -386,6 +391,8 @@ public void remove() {
386391 }
387392
388393 /**
394+ * Returns the next row.
395+ *
389396 * @return the next row from this iterator
390397 * @throws NoSuchElementException if no more rows are available
391398 */
@@ -423,6 +430,9 @@ else if (currentGroup_ == null && next instanceof TableRowGroup group) {
423430 }
424431 }
425432
433+ /**
434+ * {@inheritDoc}
435+ */
426436 @ Override
427437 public Iterator <HtmlTableRow > iterator () {
428438 return this ;
@@ -431,7 +441,9 @@ public Iterator<HtmlTableRow> iterator() {
431441
432442 /**
433443 * {@inheritDoc}
434- * @return {@code true} as browsers ignore self closing <code>table</code> tags.
444+ *
445+ * @return {@code true} so that generated XML uses explicit opening and closing
446+ * {@code <table>} tags
435447 */
436448 @ Override
437449 protected boolean isEmptyXmlTagExpanded () {
0 commit comments