public class Playlist
extends java.lang.Object
implements java.io.Serializable
Song
,
AudioBook
,
Serialized FormConstructor and Description |
---|
Playlist(java.lang.String name,
java.util.ArrayList<Song> songs,
java.util.ArrayList<AudioBook> audiobooks)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
void |
getAudioBooks()
This method is used to print the each audiobooks contained in the audiobooks attribute of the playlist.
|
int |
getId()
This method is used to give the id of the playlist.
|
java.lang.String |
getName()
This method is used to give the name of the playlist in uppercase.
|
void |
getSongs()
This method is used to print the each songs contained in the songs attribute of the playlist.
|
void |
setId(int id)
Basic method to set the id of the playlist.
|
void |
setName(java.lang.String name)
Basic method to set the name of the playlist.
|
java.lang.String |
toString()
Basic method to "configure" what does a print of this object actually does.
|
public int getId()
public java.lang.String getName()
public void getSongs()
public void getAudioBooks()
public void setId(int id)
id
- intpublic void setName(java.lang.String name)
name
- Stringpublic java.lang.String toString()
toString
in class java.lang.Object