|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.netanel.swt.matrix.Cell<X,Y>
X
- indexing type for horizontal axisY
- indexing type for vertical axispublic class Cell<X extends java.lang.Number,Y extends java.lang.Number>
Pair of indexes representing cell coordinates. Instances of this class are immutable.
Method Summary | ||
---|---|---|
static
|
create(X indexX,
Y indexY)
Creates a new instance of cell. |
|
static
|
createUnchecked(X indexX,
Y indexY)
Creates a new instance of cell without checking arguments validity. |
|
boolean |
equals(java.lang.Object obj)
|
|
X |
getIndexX()
Returns cell index on the horizontal axis. |
|
Y |
getIndexY()
Returns cell index on the vertical axis. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <X extends java.lang.Number,Y extends java.lang.Number> Cell<X,Y> create(X indexX, Y indexY)
indexX
- cell index on the horizontal axisindexY
- cell index on the vertical axis
java.lang.IllegalArgumentException
- if indexX or indexY is null
java.lang.IndexOutOfBoundsException
- if indexX or IndexY is negativepublic static <X extends java.lang.Number,Y extends java.lang.Number> Cell<X,Y> createUnchecked(X indexX, Y indexY)
indexX
- cell index on the horizontal axisindexY
- cell index on the vertical axis
public X getIndexX()
public Y getIndexY()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |