Make the jdk 1.5 interfaces a bit more jdk 1.5 friendly

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@642641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-03-29 23:04:48 +00:00
parent 83ee6d319c
commit 50d0d077eb
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ package org.apache.poi.ss.usermodel;
import java.lang.Iterable; import java.lang.Iterable;
import java.util.Iterator; import java.util.Iterator;
public interface Row extends Iterable { public interface Row extends Iterable<Cell> {
// used for collections // used for collections
public final static int INITIAL_CAPACITY = 5; public final static int INITIAL_CAPACITY = 5;

View File

@ -22,7 +22,7 @@ import java.util.Iterator;
import org.apache.poi.hssf.util.PaneInformation; import org.apache.poi.hssf.util.PaneInformation;
import org.apache.poi.hssf.util.Region; import org.apache.poi.hssf.util.Region;
public interface Sheet extends Iterable { public interface Sheet extends Iterable<Row> {
/* Constants for margins */ /* Constants for margins */
public static final short LeftMargin = Sheet.LeftMargin; public static final short LeftMargin = Sheet.LeftMargin;
@ -250,13 +250,13 @@ public interface Sheet extends Iterable {
* @return an iterator of the PHYSICAL rows. Meaning the 3rd element may not * @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. * be the third row if say for instance the second row is undefined.
*/ */
Iterator rowIterator(); Iterator<Row> rowIterator();
/** /**
* Alias for {@link #rowIterator()} to allow * Alias for {@link #rowIterator()} to allow
* foreach loops * foreach loops
*/ */
Iterator iterator(); Iterator<Row> iterator();
/** /**
* whether alternate expression evaluation is on * whether alternate expression evaluation is on