public class MatrixCoordinate extends Object
Constructor and Description |
---|
MatrixCoordinate(int i,
int j,
int m) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getI() |
int |
getJ() |
int |
getM() |
int |
hashCode()
The HashCode given here defines the MatrixCoordinate uniquely as i*m + j,
giving an bijective mapping of HashCodes to actual MatrixCoordinates.
|
String |
toString() |
public MatrixCoordinate(int i, int j, int m)
i
- the row index.j
- the column index.m
- the number of rows. This is needed to define a unique hash code.public int getI()
public int getJ()
public int getM()
public int hashCode()
Copyright © 2014. All rights reserved.