au.edu.swin.synergy.plugin.addressbook
Class BAddress
java.lang.Object
|
+--au.edu.swin.synergy.plugin.addressbook.BAddress
- public class BAddress
- extends Object
- implements Serializable
The BAddress object stores values relevant to a single address in
an BAddressBook object.
- Author:
- Matthew Evans
- See Also:
- Serialized Form
Constructor Summary |
BAddress(String name,
String address)
The BAddress constructor accepts name and address values, and sets
them. |
Method Summary |
String |
getAddress()
This method returns the class variable 'address'. |
String |
getName()
This method returns the class variable 'addressee'. |
void |
setAddress(String address)
This method set's the class variable 'address' to @param address |
void |
setName(String name)
This method set's the class variable 'addressee' to @param name |
String |
toString()
Overrides the toString() method in java.lang.Object |
BAddress
public BAddress(String name,
String address)
- The BAddress constructor accepts name and address values, and sets
them.
setName
public void setName(String name)
- This method set's the class variable 'addressee' to @param name
setAddress
public void setAddress(String address)
- This method set's the class variable 'address' to @param address
getName
public String getName()
- This method returns the class variable 'addressee'.
getAddress
public String getAddress()
- This method returns the class variable 'address'.
toString
public String toString()
- Overrides the toString() method in java.lang.Object
- Overrides:
- toString in class Object