]> source.dussan.org Git - poi.git/commitdiff
Make the jdk 1.5 interfaces a bit more jdk 1.5 friendly
authorNick Burch <nick@apache.org>
Sat, 29 Mar 2008 23:04:48 +0000 (23:04 +0000)
committerNick Burch <nick@apache.org>
Sat, 29 Mar 2008 23:04:48 +0000 (23:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@642641 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java
src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java

index b010233d1035b6c7db44c97e8804211e8087d31a..28257bae423aa546ebc076a30b24cd57a1761a29 100644 (file)
@@ -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;
index baa1055ad6161561cb4ec2898d2805968790b17b..fe533b2841eab792831b2258e4e8ef4e9f6f026f 100644 (file)
@@ -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