CSU CS165

A C D E F G H I L M N O P R S T V 

A

add(int, E) - Method in interface IList
Inserts the specified element at the specified position in this list.
add(int, E) - Method in class MyArrayList
 
add(int, E) - Method in class MyLinkedList
 
add(E) - Method in interface IList
Appends the specified element to the end of this list.
add(E) - Method in class MyArrayList
 
add(E) - Method in class MyLinkedList
 
add(E) - Method in class MyLinkedList.MyLinkedListIterator
 
addFirst(E) - Method in interface ILinkedList
Adds element to head (first) of list
addFirst(E) - Method in class MyLinkedList
 
addLast(E) - Method in interface ILinkedList
Adds element to tail (last) of list
addLast(E) - Method in class MyLinkedList
 

C

CABOOSE - TrainCar.eType
 
CAPACITY_INCREASE - Static variable in class MyArrayList
 
carType - Variable in class TrainCar
 
clear() - Method in interface IList
Removes all of the elements from this list.
clear() - Method in class MyArrayList
 
clear() - Method in class MyLinkedList
 
close() - Static method in class Debug
Close the output stream if it is not System.err.
contains(Object) - Method in interface IList
Returns true if this list contains the specified element.
contains(Object) - Method in class MyArrayList
 
contains(Object) - Method in class MyLinkedList
 
cursor - Variable in class MyLinkedList.MyLinkedListIterator
 

D

Debug - Class in <Unnamed>
In writing your code, you may be tempted to use System.out.printf() to determine what is happening.
debugLevel - Static variable in class Debug
Controls how much debug output is produced.
DINING - TrainCar.eType
 

E

ENGINE - TrainCar.eType
 
equals(Object) - Method in class TrainCar
 

F

format(String, Object...) - Static method in class Debug
An "extension" of String.format(String, Object...).
FREIGHT - TrainCar.eType
 

G

get(int) - Method in interface IList
Returns the element at the specified position in this list.
get(int) - Method in class MyArrayList
 
get(int) - Method in class MyLinkedList
 

H

hasNext() - Method in class MyLinkedList.MyLinkedListIterator
 
hasPrevious() - Method in class MyLinkedList.MyLinkedListIterator
 
HERE() - Static method in class Debug
Simple routine to print the fileName, lineNumber and methodName.

I

IArrayList<E> - Interface in <Unnamed>
IArrayList.java - ArrayList interface for data structure assignment Author: Chris Wilcox Date: 2/17/2017 Class: CS165 Email: wilcox@cs.colostate.edu javadoc created or copied from oracle by garethhalladay, Fall17.
identifier - Variable in class TrainCar
 
ILinkedList<E> - Interface in <Unnamed>
ILinkedList.java - LinkedList interface for data structure assignment Author: Chris Wilcox Date: 2/17/2017 Class: CS165 Email: wilcox@cs.colostate.edu javadoc created or copied from oracle by garethhalladay, Fall17.
IList<E> - Interface in <Unnamed>
IList.java - List interface for data structure assignment Author: Chris Wilcox Date: 2/17/2017 Class: CS165 Email: wilcox@cs.colostate.edu javadoc created or copied from oracle by garethhalladay, Fall17.
indexOf(Object) - Method in interface IList
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
indexOf(Object) - Method in class MyArrayList
 
indexOf(Object) - Method in class MyLinkedList
 
init(String[]) - Static method in class Debug
This routine will set the Debug.debugLevel from the arguments passed to main().
isEmpty() - Method in interface IList
 
isEmpty() - Method in class MyArrayList
 
isEmpty() - Method in class MyLinkedList
 
item - Variable in class MyLinkedList.Node
 

L

lastIndexOf(Object) - Method in interface IList
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
lastIndexOf(Object) - Method in class MyArrayList
 
lastIndexOf(Object) - Method in class MyLinkedList
 
listIterator() - Method in interface ILinkedList
Return a ListIterator for the list
listIterator() - Method in class MyLinkedList
 

M

MyArrayList<E> - Class in <Unnamed>
MyArrayList.java - student implementation of ArrayList Author: ????? Date: ????? Class: CS165 Email:
MyArrayList() - Constructor for class MyArrayList
Constructs an empty list with an initial capacity of ten.
MyArrayList(int) - Constructor for class MyArrayList
Constructs an empty list with the specified initial capacity.
MyLinkedList<E> - Class in <Unnamed>
CoolLinkedList.java - student implementation of LinkedList Author: ????? Date: ????? Class: CS165 Email:
MyLinkedList() - Constructor for class MyLinkedList
 
MyLinkedList.MyLinkedListIterator - Class in <Unnamed>
 
MyLinkedList.Node - Class in <Unnamed>
 
MyLinkedListIterator() - Constructor for class MyLinkedList.MyLinkedListIterator
 

N

next - Variable in class MyLinkedList.Node
 
next() - Method in class MyLinkedList.MyLinkedListIterator
 
nextIndex() - Method in class MyLinkedList.MyLinkedListIterator
 
Node(E) - Constructor for class MyLinkedList.Node
 
Node(E, MyLinkedList.Node, MyLinkedList.Node) - Constructor for class MyLinkedList.Node
 

O

ownedBy - Variable in class TrainCar
 

P

PASSENGER - TrainCar.eType
 
peek() - Method in interface ILinkedList
Peeks at element at head (first) of list
peek() - Method in class MyLinkedList
 
pop() - Method in interface ILinkedList
Pops element from head (first) of list
pop() - Method in class MyLinkedList
 
prev - Variable in class MyLinkedList.Node
 
previous() - Method in class MyLinkedList.MyLinkedListIterator
 
previousIndex() - Method in class MyLinkedList.MyLinkedListIterator
 
printDebug() - Method in class MyArrayList
Special debug method
printDebug() - Method in class MyLinkedList
Special debug method.
printf(int, String, Object...) - Static method in class Debug
Print a message if the parameter level is less than or equal to Debug.debugLevel.
printf(String, Object...) - Static method in class Debug
Print a message if the variable Debug.debugLevel is non-zero.
push(E) - Method in interface ILinkedList
Pushes element onto head (first) of list
push(E) - Method in class MyLinkedList
 

R

remove() - Method in class MyLinkedList.MyLinkedListIterator
 
remove(int) - Method in interface IList
Removes the element at the specified position in this list.
remove(int) - Method in class MyArrayList
 
remove(int) - Method in class MyLinkedList
 
remove(Object) - Method in interface IList
Removes the first occurrence of the specified element from this list, if it is present.
remove(Object) - Method in class MyArrayList
 
remove(Object) - Method in class MyLinkedList
 
removeFirst() - Method in interface ILinkedList
Removes element from head (first) of list
removeFirst() - Method in class MyLinkedList
 
removeLast() - Method in interface ILinkedList
Removes element from tail (last) of list
removeLast() - Method in class MyLinkedList
 
removeRange(int, int) - Method in interface IList
Removes from this list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive.
removeRange(int, int) - Method in class MyArrayList
 
removeRange(int, int) - Method in class MyLinkedList
 

S

set(int, E) - Method in interface IList
 
set(int, E) - Method in class MyArrayList
 
set(int, E) - Method in class MyLinkedList
 
set(E) - Method in class MyLinkedList.MyLinkedListIterator
 
size() - Method in interface IList
 
size() - Method in class MyArrayList
 
size() - Method in class MyLinkedList
 

T

TANKER - TrainCar.eType
 
toFile(String) - Static method in class Debug
Send debugging output to a file.
toString() - Method in class TrainCar
 
TrainCar - Class in <Unnamed>
 
TrainCar(TrainCar.eType, int, String) - Constructor for class TrainCar
 
TrainCar.eType - Enum in <Unnamed>
 
trimToSize() - Method in interface IArrayList
Trims the capacity to the size of the existing array
trimToSize() - Method in class MyArrayList
 

V

valueOf(String) - Static method in enum TrainCar.eType
Returns the enum constant of this type with the specified name.
values() - Static method in enum TrainCar.eType
Returns an array containing the constants of this enum type, in the order they are declared.
VIEWING - TrainCar.eType
 
A C D E F G H I L M N O P R S T V 
Skip navigation links

CSU CS165