net.walend.grid
Class Address2D
java.lang.Object
|
+--net.walend.grid.Address2D
- All Implemented Interfaces:
- Address, net.walend.enum.Immutable, java.io.Serializable
- public class Address2D
- extends java.lang.Object
- implements Address, java.io.Serializable
This class is a set of coordinates to address a cell in a Grid.
- Since:
- 20010927
- Author:
- David Walend dfw1@cornell.edu
- See Also:
- Serialized Form
Field Summary |
private int |
i
|
private int |
j
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
i
private final int i
j
private final int j
Address2D
public Address2D(int i,
int j)
getI
public int getI()
getJ
public int getJ()
argFor
public int argFor(Dimension dimension)
- Return the coordinate value for a given dimension.
- Specified by:
argFor
in interface Address
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object ob)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright (c) 2001, 2002, David Walend