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 (C) 2013, 2014 Benjamin Paaßen, Charlie Krüger, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs