Return-Path: X-Original-To: apmail-poi-commits-archive@minotaur.apache.org Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B22618F30 for ; Mon, 30 Nov 2015 05:29:01 +0000 (UTC) Received: (qmail 52009 invoked by uid 500); 30 Nov 2015 05:29:01 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 51977 invoked by uid 500); 30 Nov 2015 05:29:01 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 51968 invoked by uid 99); 30 Nov 2015 05:29:01 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2015 05:29:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8E4F1C048F for ; Mon, 30 Nov 2015 05:29:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.446 X-Spam-Level: X-Spam-Status: No, score=0.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Et5DFC78guOq for ; Mon, 30 Nov 2015 05:28:59 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id BEA6F42AD1 for ; Mon, 30 Nov 2015 05:28:58 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4B3A9E006A for ; Mon, 30 Nov 2015 05:28:58 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 0F2CF3A0234 for ; Mon, 30 Nov 2015 05:28:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1717181 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java Date: Mon, 30 Nov 2015 05:28:57 -0000 To: commits@poi.apache.org From: onealj@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151130052858.0F2CF3A0234@svn01-us-west.apache.org> Author: onealj Date: Mon Nov 30 05:28:57 2015 New Revision: 1717181 URL: http://svn.apache.org/viewvc?rev=1717181&view=rev Log: add @Override annotations to SXSSFRow Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java?rev=1717181&r1=1717180&r2=1717181&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java Mon Nov 30 05:28:57 2015 @@ -59,6 +59,7 @@ public class SXSSFRow implements Row, Co return _height!=-1; } + @Override public int getOutlineLevel(){ return _outlineLevel; } @@ -92,6 +93,7 @@ public class SXSSFRow implements Row, Co this._collapsed = collapsed; } //begin of interface implementation + @Override public Iterator iterator() { return new FilledCellIterator(); @@ -108,6 +110,7 @@ public class SXSSFRow implements Row, Co * @throws IllegalArgumentException if columnIndex < 0 or greater than the maximum number of supported columns * (255 for *.xls, 1048576 for *.xlsx) */ + @Override public SXSSFCell createCell(int column) { return createCell(column,Cell.CELL_TYPE_BLANK); @@ -124,6 +127,7 @@ public class SXSSFRow implements Row, Co * @throws IllegalArgumentException if columnIndex < 0 or greate than a maximum number of supported columns * (255 for *.xls, 1048576 for *.xlsx) */ + @Override public SXSSFCell createCell(int column, int type) { checkBounds(column); @@ -157,6 +161,7 @@ public class SXSSFRow implements Row, Co * * @param cell the cell to remove */ + @Override public void removeCell(Cell cell) { int index=getCellIndex(cell); @@ -182,6 +187,7 @@ public class SXSSFRow implements Row, Co * @param rowNum the row number (0-based) * @throws IllegalArgumentException if rowNum < 0 */ + @Override public void setRowNum(int rowNum) { _sheet.changeRowNum(this,rowNum); @@ -192,6 +198,7 @@ public class SXSSFRow implements Row, Co * * @return the row number (0 based) */ + @Override public int getRowNum() { return _sheet.getRowNum(this); @@ -205,6 +212,7 @@ public class SXSSFRow implements Row, Co * @return Cell representing that column or null if undefined. * @see #getCell(int, org.apache.poi.ss.usermodel.Row.MissingCellPolicy) */ + @Override public SXSSFCell getCell(int cellnum) { if(cellnum < 0) throw new IllegalArgumentException("Cell index must be >= 0"); @@ -239,6 +247,7 @@ public class SXSSFRow implements Row, Co * @see Row#RETURN_BLANK_AS_NULL * @see Row#CREATE_NULL_AS_BLANK */ + @Override public Cell getCell(int cellnum, MissingCellPolicy policy) { Cell cell = getCell(cellnum); @@ -272,6 +281,7 @@ public class SXSSFRow implements Row, Co * @return short representing the first logical cell in the row, * or -1 if the row does not contain any cells. */ + @Override public short getFirstCellNum() { for(int i=0;i<=_maxColumn;i++) @@ -298,6 +308,7 @@ public class SXSSFRow implements Row, Co * @return short representing the last logical cell in the row PLUS ONE, * or -1 if the row does not contain any cells. */ + @Override public short getLastCellNum() { return _maxColumn == -1 ? -1 : (short)(_maxColumn+1); @@ -309,6 +320,7 @@ public class SXSSFRow implements Row, Co * * @return int representing the number of defined cells in the row. */ + @Override public int getPhysicalNumberOfCells() { int count=0; @@ -325,6 +337,7 @@ public class SXSSFRow implements Row, Co * * @param height rowheight or 0xff for undefined (use sheet default) */ + @Override public void setHeight(short height) { _height=height; @@ -335,6 +348,7 @@ public class SXSSFRow implements Row, Co * * @param zHeight height is zero or not. */ + @Override public void setZeroHeight(boolean zHeight) { _zHeight=zHeight; @@ -345,6 +359,7 @@ public class SXSSFRow implements Row, Co * * @return - zHeight height is zero or not. */ + @Override public boolean getZeroHeight() { return _zHeight; @@ -355,6 +370,7 @@ public class SXSSFRow implements Row, Co * * @param height the height in points. -1 resets to the default height */ + @Override public void setHeightInPoints(float height) { if(height==-1) @@ -369,6 +385,7 @@ public class SXSSFRow implements Row, Co * * @return row height measured in twips (1/20th of a point) */ + @Override public short getHeight() { return (short)(_height==-1?getSheet().getDefaultRowHeightInPoints()*20:_height); @@ -381,6 +398,7 @@ public class SXSSFRow implements Row, Co * @return row height measured in point size * @see Sheet#getDefaultRowHeightInPoints() */ + @Override public float getHeightInPoints() { return (float)(_height==-1?getSheet().getDefaultRowHeightInPoints():_height/20.0); @@ -391,6 +409,7 @@ public class SXSSFRow implements Row, Co * do have whole-row styles. For those that do, you * can get the formatting from {@link #getRowStyle()} */ + @Override public boolean isFormatted() { return _style > -1; } @@ -399,6 +418,7 @@ public class SXSSFRow implements Row, Co * have one of these, so will return null. Call * {@link #isFormatted()} to check first. */ + @Override public CellStyle getRowStyle() { if(!isFormatted()) return null; @@ -414,6 +434,7 @@ public class SXSSFRow implements Row, Co * Applies a whole-row cell styling to the row. * The row style can be cleared by passing in null. */ + @Override public void setRowStyle(CellStyle style) { if(style == null) { _style = -1; @@ -427,6 +448,7 @@ public class SXSSFRow implements Row, Co * @return Cell iterator of the physically defined cells. Note element 4 may * actually be row cell depending on how many are defined! */ + @Override public Iterator cellIterator() { return iterator(); @@ -437,6 +459,7 @@ public class SXSSFRow implements Row, Co * * @return the Sheet that owns this row */ + @Override public SXSSFSheet getSheet() { return _sheet; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org