|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.grid.PartitionCellId.Pair
public static final class PartitionCellId.Pair
This class represents a single partition cell, i.e., a pair consisting of a row and a column.
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this PartitionCellId.Pair instance with a given other PartitionCellId.Pair instance. |
boolean |
equals(java.lang.Object o)
Compares this PartitionCellId.Pair instance with a given other PartitionCellId.Pair instance based on their
associated ColumnDescriptor and RowDescriptor instances. |
ColumnDescriptor |
getColumn()
Returns the ColumnDescriptor associated with this partition cell . |
RowDescriptor |
getRow()
Returns the RowDescriptor associated with this partition cell . |
int |
hashCode()
Returns the hash code value for this PartitionCellId.Pair instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public RowDescriptor getRow()
RowDescriptor
associated with this partition cell
.
RowDescriptor
instancepublic ColumnDescriptor getColumn()
ColumnDescriptor
associated with this partition cell
.
ColumnDescriptor
instancepublic int compareTo(java.lang.Object o)
PartitionCellId.Pair
instance with a given other PartitionCellId.Pair
instance.
The comparison is based on the indices of the rows
and columns
of the two pairs. A PartitionCellId.Pair
is considered to be smaller than another pair if its
row index
is smaller than the row index of the other pair.
If the row indices are equal, the PartitionCellId.Pair
with the smaller column index
is said to be smaller. Hence, two PartitionCellId.Pair
instances are equal, if the row and column indices are equal.
compareTo
in interface java.lang.Comparable
o
- the PartitionCellId.Pair
to be compared
-1
, 0
or 1
if this PartitionCellId.Pair
is smaller than, equal to,
or greater than the given other PartitionCellId.Pair
instancepublic boolean equals(java.lang.Object o)
PartitionCellId.Pair
instance with a given other PartitionCellId.Pair
instance based on their
associated ColumnDescriptor
and RowDescriptor
instances.
equals
in class java.lang.Object
o
- the given PartitionCellId.Pair
instance
true
if the two objects are equal, false
otherwisepublic int hashCode()
PartitionCellId.Pair
instance.
hashCode
in class java.lang.Object
PartitionCellId.Pair
instance
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |