public class AddressList
extends java.lang.Object
implements java.io.Serializable
Address
objects.Constructor and Description |
---|
AddressList()
Deprecated.
Constructs a new, empty AddressList.
|
AddressList(int initialSize)
Deprecated.
Constructs a new, empty AddressList, with the initial capacity specified.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Address address)
Deprecated.
Adds an
Address to the AddressLineList. |
Address |
get(int index)
Deprecated.
Returns the
Address at the specified index. |
int |
size()
Deprecated.
Returns the number of
Address objects in the AddressList. |
public AddressList()
public AddressList(int initialSize)
initialSize
- the initial capacity of the AddressList.public void add(Address address)
Address
to the AddressLineList.address
- the Address to be added.public Address get(int index)
Address
at the specified index.index
- the index of the addressLine to be retrieved.