| java.lang.Object csheets.core.Address
Constructor Summary | |
public | Address(int column, int row) Creates a new address from the given column and row indices. |
Method Summary | |
public int | compareTo(Address address) Compares this address with the given address for order. | public boolean | equals(Object other) Returns whether the other object is an address with
the same column and row coordinates as this address. | public int | getColumn() Returns the column of the address. | public int | getRow() Returns the row of the address. | public int | hashCode() Returns the hash code of the address. | public String | toString() |
HIGHEST_CHAR | final public static char HIGHEST_CHAR(Code) | | The highest character to be used in a column name
|
LOWEST_CHAR | final public static char LOWEST_CHAR(Code) | | The lowest character to be used in a column name
|
Address | public Address(int column, int row)(Code) | | Creates a new address from the given column and row indices.
Parameters: column - the column of the address Parameters: row - the row of the address |
compareTo | public int compareTo(Address address)(Code) | | Compares this address with the given address for order.
Ordering is first done on the addresses' columns, then on their rows.
Parameters: address - the address to compared to a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. |
equals | public boolean equals(Object other)(Code) | | Returns whether the other object is an address with
the same column and row coordinates as this address.
Parameters: other - the object to check for equality true if the objects are equal |
getColumn | public int getColumn()(Code) | | Returns the column of the address.
the column of the address |
getRow | public int getRow()(Code) | | Returns the row of the address.
the row of the address |
hashCode | public int hashCode()(Code) | | Returns the hash code of the address.
an int with the column in the 16 high bits, row in the low 16. |
toString | public String toString()(Code) | | Returns a string representation of the address on the form "B22",
composed of the letter of the column and number of the row that
intersect to form the address.
a string representation of the address |
|
|