|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AddressCard
AddressCard.java Created: Sun Mar 2 18:30:53 2003
Constructor Summary | |
AddressCard(String n,
String a)
Creates a new AddressCard instance. |
Method Summary | |
int |
compareTo(Object ac)
Compares this AddressCard to another Object. |
String |
getAddress()
Get the value of address. |
String |
getName()
Get the value of name. |
void |
setAddress(String v)
Set the value of address. |
void |
setName(String v)
Set the value of name. |
String |
toString()
Returns a String representation of this AddressCard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AddressCard(String n, String a)
AddressCard
instance.
n
- the person whose address card this is.a
- the person's email address.Method Detail |
public String getName()
public void setName(String v)
v
- Value to assign to name.public String getAddress()
public void setAddress(String v)
v
- Value to assign to address.public int compareTo(Object ac)
AddressCard
to another Object.
compareTo
in interface Comparable
ac
- an Object
value
ac
.public String toString()
String
representation of this AddressCard.
toString
in class Object
String
representation of this AddressCard.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |