A G I L P R S T

A

add(int, Object) - Method in class ListArrayBased
 
add(int, Object) - Method in interface ListInterface
Inserts the specified element at the specified position in this list.

G

get(int) - Method in class ListArrayBased
 
get(int) - Method in interface ListInterface
Returns the element at the specified position in this list.
getAddress() - Method in class Person
The accessor function getAddress returns the person's address.
getName() - Method in class Person
The accessor function getName returns the person's name.

I

isEmpty() - Method in class ListArrayBased
 
isEmpty() - Method in interface ListInterface
Returns true if this list contains no elements.

L

ListArrayBased - class ListArrayBased.
Array implementation of the List interface.
ListArrayBased() - Constructor for class ListArrayBased
 
ListException - exception ListException.
Thrown to indicate that it was not possible to perform a correctly-requested list operation.
ListException(String) - Constructor for class ListException
The constructor accepts a message to pass to any program that catches the exception.
ListIndexOutOfBoundsException - exception ListIndexOutOfBoundsException.
The ListIndexOutOfBoundsException is thrown when a list operation is called with an invalid index to a list element.
ListIndexOutOfBoundsException(String) - Constructor for class ListIndexOutOfBoundsException
The constructor accepts a message to pass to any program that catches the exception.
ListInterface - interface ListInterface.
An ordered collection (also known as a sequence).

P

Person - class Person.
The class Person represents a person having a name and address.
Person() - Constructor for class Person
The default constructor initializes a person named "John Doe" in "New York City"
Person(String, String) - Constructor for class Person
This is the constructor that would normally be used to create a Person object.

R

remove(int) - Method in class ListArrayBased
 
remove(int) - Method in interface ListInterface
Removes the element at the specified position in this list.
removeAll() - Method in class ListArrayBased
 
removeAll() - Method in interface ListInterface
Removes from this list all the elements that are contained in the specified collection.

S

setAddress(String) - Method in class Person
Sets the person's address.
size() - Method in class ListArrayBased
 
size() - Method in interface ListInterface
Returns the number of elements in this list.

T

toString() - Method in class Person
Returns a string representing the person, consisting of the name followed by "/" followed by the address.

A G I L P R S T