mirror of https://github.com/apache/poi.git
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:
parent
83ee6d319c
commit
50d0d077eb
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue