mapping.data
Class Tuple

java.lang.Object
  extended by mapping.data.Tuple

public class Tuple
extends java.lang.Object

This class represents a vector of two elements and is used to implement the DeltaStar Matrix as a Sparse Matrix.

Author:
Majd Kokaly

Constructor Summary
Tuple(int i, int j)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCol()
           
 int getRow()
           
 int hashCode()
           
 void setCol(int col)
           
 void setRow(int row)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple(int i,
             int j)
Method Detail

getRow

public int getRow()

setRow

public void setRow(int row)

getCol

public int getCol()

setCol

public void setCol(int col)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object