X
- indexing type for horizontal axisY
- indexing type for vertical axispublic class Cell<X extends java.lang.Number,Y extends java.lang.Number>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <X extends java.lang.Number,Y extends java.lang.Number> |
create(X indexX,
Y indexY)
Creates a new instance of cell.
|
static <X extends java.lang.Number,Y extends java.lang.Number> |
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() |
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 axisjava.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 axispublic 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
Copyright © 2011 netanel.pl. All Rights Reserved.