private Integer getKeyForCache(final CellReference cellRef) {
// The HSSF has a max of 2^16 rows and 2^8 cols
- return new Integer((cellRef.getCol()+1)<<16 | cellRef.getRow());
+ return ((cellRef.getCol()+1)<<16 | cellRef.getRow());
}
/**
if(initialAllocationSize<=0)
initialAllocationSize=10;
SXSSFRow newRow=new SXSSFRow(this,initialAllocationSize);
- _rows.put(new Integer(rownum),newRow);
+ _rows.put(rownum,newRow);
allFlushed = false;
if(_randomAccessWindowSize>=0&&_rows.size()>_randomAccessWindowSize)
{
*/
public SXSSFRow getRow(int rownum)
{
- return _rows.get(new Integer(rownum));
+ return _rows.get(rownum);
}
/**
*/
public void setRowOutlineLevel(int rownum, int level)
{
- SXSSFRow row = _rows.get(new Integer(rownum));
+ SXSSFRow row = _rows.get(rownum);
row.setOutlineLevel(level);
if(level > 0 && level > outlineLevelRow) {
outlineLevelRow = level;
{
removeRow(row);
- _rows.put(new Integer(newRowNum),row);
+ _rows.put(newRowNum,row);
}
public int getRowNum(SXSSFRow row)
\r
static {\r
for (BreakClear p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static BreakClear valueOf(int type) {\r
- BreakClear bType = imap.get(new Integer(type));\r
+ BreakClear bType = imap.get(type);\r
if (bType == null)\r
throw new IllegalArgumentException("Unknown break clear type: "\r
+ type);\r
\r
static {\r
for (BreakType p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static BreakType valueOf(int type) {\r
- BreakType bType = imap.get(new Integer(type));\r
+ BreakType bType = imap.get(type);\r
if (bType == null)\r
throw new IllegalArgumentException("Unknown break type: "\r
+ type);\r
\r
static {\r
for (LineSpacingRule p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static LineSpacingRule valueOf(int type) {\r
- LineSpacingRule lineType = imap.get(new Integer(type));\r
+ LineSpacingRule lineType = imap.get(type);\r
if (lineType == null)\r
throw new IllegalArgumentException("Unknown line type: " + type);\r
return lineType;\r
\r
static {\r
for (ParagraphAlignment p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static ParagraphAlignment valueOf(int type) {\r
- ParagraphAlignment err = imap.get(new Integer(type));\r
+ ParagraphAlignment err = imap.get(type);\r
if (err == null) throw new IllegalArgumentException("Unknown paragraph alignment: " + type);\r
return err;\r
}\r
\r
static {\r
for (TextAlignment p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static TextAlignment valueOf(int type) {\r
- TextAlignment align = imap.get(new Integer(type));\r
+ TextAlignment align = imap.get(type);\r
if (align == null) throw new IllegalArgumentException("Unknown text alignment: " + type);\r
return align;\r
}\r
\r
static {\r
for (UnderlinePatterns p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static UnderlinePatterns valueOf(int type) {\r
- UnderlinePatterns align = imap.get(new Integer(type));\r
+ UnderlinePatterns align = imap.get(type);\r
if (align == null)\r
throw new IllegalArgumentException("Unknown underline pattern: "\r
+ type);\r
\r
static {\r
for (VerticalAlign p : values()) {\r
- imap.put(new Integer(p.getValue()), p);\r
+ imap.put(p.getValue(), p);\r
}\r
}\r
\r
}\r
\r
public static VerticalAlign valueOf(int type) {\r
- VerticalAlign align = imap.get(new Integer(type));\r
+ VerticalAlign align = imap.get(type);\r
if (align == null)\r
throw new IllegalArgumentException("Unknown vertical alignment: "\r
+ type);\r
private final AutoNumberingScheme autoNumberScheme;
private final static AutoNumberingScheme DEFAULT_AUTONUMBER_SHEME = AutoNumberingScheme.arabicPeriod;
private final Short autoNumberStartNumber;
- private final static Short DEFAULT_START_NUMBER = new Short((short)1);
+ private final static Short DEFAULT_START_NUMBER = 1;
private final int recordLength;
public TextPFException9(final byte[] source, final int startIndex) {
//this.mask1 = source[startIndex];