Skip to content

Commit 7645926

Browse files
committed
Added getSongList getter to Playlist
1 parent 5f1899a commit 7645926

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/xxmicloxx/NoteBlockAPI/model/Playlist.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,12 @@ public boolean hasNext(int songNumber){
6969
public boolean exist(int songNumber){
7070
return songs.size() > songNumber;
7171
}
72+
73+
/**
74+
* Returns list of Songs in Playlist
75+
* @return
76+
*/
77+
public ArrayList<Song> getSongList(){
78+
return (ArrayList<Song>) songs.clone();
79+
}
7280
}

0 commit comments

Comments
 (0)