diff options
author | Nick Burch <nick@apache.org> | 2008-03-29 23:04:48 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2008-03-29 23:04:48 +0000 |
commit | 50d0d077ebb3ca4fcffe3f56a1db37dd64f725dc (patch) | |
tree | d1bd5261c6310cb0cdbf9008e5f5f55b6bde979f /src/ooxml | |
parent | 83ee6d319c7cb5a7ee377cd58d012284e579d64a (diff) | |
download | poi-50d0d077ebb3ca4fcffe3f56a1db37dd64f725dc.tar.gz poi-50d0d077ebb3ca4fcffe3f56a1db37dd64f725dc.zip |
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
Diffstat (limited to 'src/ooxml')
-rw-r--r-- | src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java | 2 | ||||
-rw-r--r-- | src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java index b010233d10..28257bae42 100644 --- a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java +++ b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java @@ -20,7 +20,7 @@ package org.apache.poi.ss.usermodel; import java.lang.Iterable; import java.util.Iterator; -public interface Row extends Iterable { +public interface Row extends Iterable<Cell> { // used for collections public final static int INITIAL_CAPACITY = 5; diff --git a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java index baa1055ad6..fe533b2841 100644 --- a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java +++ b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java @@ -22,7 +22,7 @@ import java.util.Iterator; import org.apache.poi.hssf.util.PaneInformation; import org.apache.poi.hssf.util.Region; -public interface Sheet extends Iterable { +public interface Sheet extends Iterable<Row> { /* Constants for margins */ 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 * be the third row if say for instance the second row is undefined. */ - Iterator rowIterator(); + Iterator<Row> rowIterator(); /** * Alias for {@link #rowIterator()} to allow * foreach loops */ - Iterator iterator(); + Iterator<Row> iterator(); /** * whether alternate expression evaluation is on |