* @return cell iterator of the physically defined cells. Note element 4 may
* actually be row cell depending on how many are defined!
*/
-
public Iterator cellIterator()
{
return new CellIterator();
}
+ /**
+ * Alias for {@link CellIterator} to allow
+ * foreach loops
+ */
+ public Iterator iterator() {
+ return cellIterator();
+ }
private class CellIterator implements Iterator
{
* @return an iterator of the PHYSICAL rows. Meaning the 3rd element may not
* be the third row if say for instance the second row is undefined.
*/
-
public Iterator rowIterator()
{
return rows.values().iterator();
}
+ /**
+ * Alias for {@link #rowIterator()} to allow
+ * foreach loops
+ */
+ public Iterator iterator() {
+ return rowIterator();
+ }
+
/**
* used internally in the API to get the low level Sheet record represented by this