public class CellRangeAddressList extends java.lang.Object implements GenericRecord
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<CellRangeAddress> |
_list
List of
CellRangeAddresses. |
| Constructor and Description |
|---|
CellRangeAddressList() |
CellRangeAddressList(int firstRow,
int lastRow,
int firstCol,
int lastCol)
Convenience constructor for creating a
CellRangeAddressList with a single
CellRangeAddress. |
CellRangeAddressList(RecordInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCellRangeAddress(CellRangeAddress cra) |
void |
addCellRangeAddress(int firstRow,
int firstCol,
int lastRow,
int lastCol)
Add a cell range structure.
|
CellRangeAddressList |
copy() |
int |
countRanges()
Get the number of following ADDR structures.
|
CellRangeAddress |
getCellRangeAddress(int index) |
CellRangeAddress[] |
getCellRangeAddresses() |
static int |
getEncodedSize(int numberOfRanges) |
java.util.List<CellRangeAddress> |
getGenericChildren() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getSize() |
CellRangeAddress |
remove(int rangeIndex) |
int |
serialize(int offset,
byte[] data) |
void |
serialize(LittleEndianOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericRecordTypeprotected final java.util.List<CellRangeAddress> _list
CellRangeAddresses. Each structure represents a cell rangepublic CellRangeAddressList()
public CellRangeAddressList(int firstRow,
int lastRow,
int firstCol,
int lastCol)
CellRangeAddressList with a single
CellRangeAddress. Other CellRangeAddresses may be added later.public CellRangeAddressList(RecordInputStream in)
in - the RecordInputstream to read the record frompublic int countRanges()
public void addCellRangeAddress(int firstRow,
int firstCol,
int lastRow,
int lastCol)
firstRow - - the upper left hand corner's rowfirstCol - - the upper left hand corner's collastRow - - the lower right hand corner's rowlastCol - - the lower right hand corner's colpublic void addCellRangeAddress(CellRangeAddress cra)
public CellRangeAddress remove(int rangeIndex)
public CellRangeAddress getCellRangeAddress(int index)
CellRangeAddress at the given indexpublic int getSize()
public static int getEncodedSize(int numberOfRanges)
public int serialize(int offset,
byte[] data)
public void serialize(LittleEndianOutput out)
public CellRangeAddressList copy()
public CellRangeAddress[] getCellRangeAddresses()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordpublic java.util.List<CellRangeAddress> getGenericChildren()
getGenericChildren in interface GenericRecordCopyright 2022 The Apache Software Foundation or its licensors, as applicable.