public abstract class CellRange
extends java.lang.Object
implements java.io.Serializable
CellRange
s.Constructor and Description |
---|
CellRange()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
CellIndex |
getEndIndex(DataModel model)
Returns the end index of a multi-cell range, or null for a
single-cell range.
|
CellKey |
getEndKey()
Returns the end key of a multi-cell range, or null for a single-cell range
All subclasses are required to override the implementation in this superclass,
which throws
UnsupportedOperationException . |
CellIndex |
getStartIndex(DataModel model)
Returns the start index of a multi-cell range, or the index of
a single-cell range.
|
CellKey |
getStartKey()
Returns the start key of a multi-cell range, or the key of a single-cell range.
|
boolean |
isSingleCell()
Indicates whether this range consists of a single cell or multiple cells.
|
public CellKey getStartKey()
UnsupportedOperationException
.public CellKey getEndKey()
UnsupportedOperationException
.public boolean isSingleCell()
UnsupportedOperationException
.true
if this range consists of a single cell; false
otherwise.public CellIndex getStartIndex(DataModel model)
getStartIndex
, or internally by the Pivot Table),
this method computes the start index from the start key, stores that index
for future use, and returns that index.
Thus, the first call to this method can be expensive.
All subclasses are required to override the implementation in this superclass,
which throws UnsupportedOperationException
.public CellIndex getEndIndex(DataModel model)
getEndIndex
, or internally by the Pivot Table),
this method computes the end index from the end key, stores that index
for future use, and returns that index.
Thus, the first call to this method can be expensive.
All subclasses are required to override the implementation in this superclass,
which throws UnsupportedOperationException
.