|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.Address
public class Address
An address in a spreadsheet that denotes to the location of a cell.
| Field Summary | |
|---|---|
static char |
HIGHEST_CHAR
The highest character to be used in a column name |
static char |
LOWEST_CHAR
The lowest character to be used in a column name |
| Constructor Summary | |
|---|---|
Address(int column,
int row)
Creates a new address from the given column and row indices. |
|
| Method Summary | |
|---|---|
int |
compareTo(Address address)
Compares this address with the given address for order. |
boolean |
equals(Object other)
Returns whether the other object is an address with the same column and row coordinates as this address. |
int |
getColumn()
Returns the column of the address. |
int |
getRow()
Returns the row of the address. |
int |
hashCode()
Returns the hash code of the address. |
String |
toString()
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char LOWEST_CHAR
public static final char HIGHEST_CHAR
| Constructor Detail |
|---|
public Address(int column,
int row)
column - the column of the addressrow - the row of the address| Method Detail |
|---|
public int getColumn()
public int getRow()
public boolean equals(Object other)
equals in class Objectother - the object to check for equality
public int hashCode()
hashCode in class Objectpublic int compareTo(Address address)
compareTo in interface Comparable<Address>address - the address to compared to
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||