A B C D G I M P R S T 

A

add(Object) - Method in class BasicArrayList
 
add(int, Object) - Method in class BasicArrayList
 
add(Object) - Method in interface BasicList
Adds the specfied element to the logical end of the list.
add(int, Object) - Method in interface BasicList
Adds (inserts) the specfied element at the specfied index of the list - note that it does not overwrite any existing data at that location.

B

BasicArrayList - Class in <Unnamed>
 
BasicArrayList() - Constructor for class BasicArrayList
Default constructor - initializes the list to have a capacitiy equal to the DEFAULT_CAPACITY and a logical size of zero.
BasicArrayList(int) - Constructor for class BasicArrayList
Constructor - initializes the list to have the specified capacity (but never less than the DEFAULT_CAPACITY) and a logical size of 0.
BasicList - Interface in <Unnamed>
 

C

capacity() - Method in class BasicArrayList
Provides access to the current capacity (.length) of the private array to allow for rigorous unit testing - note that this method is not available in the Java Standard Library ArrayList class.
clear() - Method in class BasicArrayList
 
clear() - Method in interface BasicList
Clears the list of its contents - the size of the list should be zero and its capacity should be unaffected.
contains(Object) - Method in class BasicArrayList
 
contains(Object) - Method in interface BasicList
Using the provided element's equals method, this method determines if the list contains the specified element or not.

D

DEFAULT_CAPACITY - Static variable in class BasicArrayList
 

G

get(int) - Method in class BasicArrayList
 
get(int) - Method in interface BasicList
Returns a reference to the element at the specified index.

I

indexOf(Object) - Method in class BasicArrayList
 
indexOf(Object) - Method in interface BasicList
Using the provided element's equals method, this method returns the index of the first element in the list that is equal to the provided element, if any.

M

main(String[]) - Static method in class P2bTestDriver
 

P

P2bTestDriver - Class in <Unnamed>
 
P2bTestDriver() - Constructor for class P2bTestDriver
 

R

remove(int) - Method in class BasicArrayList
 
remove(int) - Method in interface BasicList
Removes (and returns) the specified element from the list.

S

set(int, Object) - Method in class BasicArrayList
 
set(int, Object) - Method in interface BasicList
Sets (replaces) the element at the specfied index.
size() - Method in class BasicArrayList
 
size() - Method in interface BasicList
The logical size of the list (the number of elements that have been added and not removed).

T

trimToSize() - Method in class BasicArrayList
Frees up any unused space in the list by reducing the capacity of the list to its size but never less than the DEFAULT_CAPACITY.
A B C D G I M P R S T