Index

A B C D E F G I J L P R S T 
All Classes and Interfaces|All Packages

A

addAlbumToQueue(Album) - Method in class JukeBox
Adds an entire album to the queue if space allows.
addSong(Song) - Method in class Album
Adds a song to the top of the album's track list and adds the Album reference to the song.
addSongToQueue(Song) - Method in class JukeBox
Adds a single song to the end of the queue if space allows.
Album - Class in Unnamed Package
Represents an album consisting of a stack of songs.
Album(String) - Constructor for class Album
Constructs an empty Album with a new LinkedStack to store song and size as zero.
albumName - Variable in class Album
The name of the album.

B

back - Variable in class LinkedQueue
A reference to the LinkedNode currently at the back of the queue, which contains the most-recently added value in the queue.

C

capacity - Variable in class JukeBox
The maximum number of songs the jukebox can hold.
capacity() - Method in class JukeBox
Returns the capacity of the queue.
clear() - Method in class LinkedQueue
 
contains(T) - Method in class LinkedQueue
 
contains(T) - Method in class LinkedStack
 

D

dequeue() - Method in class LinkedQueue
 

E

enqueue(T) - Method in class LinkedQueue
 

F

firstSong() - Method in class Album
Retrieves the song that is currently at the top of the album's track list, without removing it from the stack.
front - Variable in class LinkedQueue
A reference to the LinkedNode currently at the front of the queue, which contains the least-recently added value in the queue.

G

getAlbumName() - Method in class Album
Retrieves the name of the album.
getList() - Method in class LinkedQueue
Creates a copy of the current contents of this queue in the order they are present here, in ArrayList form.
getList() - Method in class LinkedStack
Creates a copy of the current contents of this stack in the order they are present here, in ArrayList form.

I

isEmpty() - Method in class JukeBox
Checks if the queue is empty.
isEmpty() - Method in class LinkedQueue
 
isEmpty() - Method in class LinkedStack
 
isFull() - Method in class JukeBox
Checks if the queue is full.

J

JukeBox - Class in Unnamed Package
Represents a jukebox that holds a queue of songs for playback.
JukeBox(int) - Constructor for class JukeBox
Constructs a new JukeBox with a specified capacity.

L

LinkedQueue<T> - Class in Unnamed Package
A generic singly-linked queue implementation.
LinkedQueue() - Constructor for class LinkedQueue
 
LinkedStack<T> - Class in Unnamed Package
A generic singly-linked stack implementation.
LinkedStack() - Constructor for class LinkedStack
 

P

peek() - Method in class LinkedQueue
 
peek() - Method in class LinkedStack
 
playSong() - Method in class JukeBox
Plays and removes the song at the front of the queue.
pop() - Method in class LinkedStack
 
push(T) - Method in class LinkedStack
 

R

removeSong() - Method in class Album
Removes the most recently added song from the album.

S

shuffleSongQueue() - Method in class JukeBox
Shuffles the songs present in the queue.
size - Variable in class Album
The number of songs currently in the album.
size - Variable in class LinkedQueue
The number of values currently present in the queue.
size() - Method in class Album
Returns the number of songs currently in the album.
size() - Method in class JukeBox
Returns the current number of songs in the queue.
size() - Method in class LinkedQueue
 
songQueue - Variable in class JukeBox
Queue to store songs in the jukebox in FIFO order.

T

top - Variable in class LinkedStack
A reference to the LinkedNode currently at the top of the stack, which is null when the stack is empty.
toString() - Method in class Album
Returns a string representation of the album, with the name of the album as the first line and listing all songs from the top of the stack to the bottom.
toString() - Method in class JukeBox
Provides a string representation of the jukebox queue for debugging and display.
trackList - Variable in class Album
Stack to store songs in the album.
A B C D E F G I J L P R S T 
All Classes and Interfaces|All Packages