Browse Source

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
tags/REL_3_5_BETA2
Nick Burch 16 years ago
parent
commit
50d0d077eb

+ 1
- 1
src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Row.java View 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;

+ 3
- 3
src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java View 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

Loading…
Cancel
Save