public class PartitionCellId extends Object
PartitionCellId
represents an identifier for partition cells of a partition grid
structure.PartitionGrid
Modifier and Type | Class and Description |
---|---|
static class |
PartitionCellId.Cell
This class represents a single partition cell, i.e., a pair consisting of a row and a column.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares this
PartitionCellId instance with a given other PartitionCellId instance. |
Iterable<PartitionCellId.Cell> |
getCells()
Gets a
collection of elements of type PartitionCellId.Cell . |
ColumnDescriptor |
getColumn()
Gets the first
column associated with this partition cell identifier. |
RowDescriptor |
getRow()
Gets the first
row associated with this partition cell identifier. |
int |
hashCode()
Returns the hash code value for this
PartitionCellId instance. |
boolean |
isSpanning()
Gets whether or not this
PartitionCellId represents a multi-cell, i.e., a cell spanning multiple rows/columns. |
public boolean equals(Object o)
PartitionCellId
instance with a given other PartitionCellId
instance.equals
in class Object
o
- the given PartitionCellId
instancetrue
if the two objects are equal, false
otherwisepublic Iterable<PartitionCellId.Cell> getCells()
collection
of elements of type PartitionCellId.Cell
.
Each pair consists of a column
and a row
defining a single
partition cell
.
partition cell
identifier that covers more than one partition cell can only be assigned to
group nodes.Collection
of elements of type PartitionCellId.Cell
public ColumnDescriptor getColumn()
column
associated with this partition cell
identifier.column
associated with this partition cell
identifierpublic RowDescriptor getRow()
row
associated with this partition cell
identifier.row
associated with this partition cell
identifierpublic int hashCode()
PartitionCellId
instance.hashCode
in class Object
PartitionCellId
instancepublic boolean isSpanning()
PartitionCellId
represents a multi-cell, i.e., a cell spanning multiple rows/columns.
This means that it was created using
PartitionGrid.createCellSpanId(Collection, Collection)
,
PartitionGrid.createCellSpanId(RowDescriptor, ColumnDescriptor, RowDescriptor, ColumnDescriptor)
,
PartitionGrid.createCellSpanId(int, int, int, int)
, PartitionGrid.createColumnSpanId(int)
or PartitionGrid.createRowSpanId(int)
.
true
if this PartitionCellId
represents a multi-cell, false
otherwise