aboutsummaryrefslogtreecommitdiff
path: root/javadoc/jMusicHub.html
blob: cfd3b2dbbd2a3058150d382e8e281124a6fe3446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_272) on Mon Dec 28 17:30:46 CET 2020 -->
<title>jMusicHub</title>
<meta name="date" content="2020-12-28">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="jMusicHub";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li><a href="index-all.html">Index</a></li>
<li><a href="help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="Genre.html" title="enum in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="Language.html" title="enum in &lt;Unnamed&gt;"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="index.html?jMusicHub.html" target="_top">Frames</a></li>
<li><a href="jMusicHub.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<h2 title="Class jMusicHub" class="title">Class jMusicHub</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>jMusicHub</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">jMusicHub</span>
extends java.lang.Object</pre>
<div class="block">The jMusicHub class is our main component.
 It's basically the app we use to launch the whole process.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>2020-11-13</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="jMusicHub.html#jMusicHub--">jMusicHub</a></span>()</code>
<div class="block">Constructor method, it is calling every methods and contains the command prompt.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="Album.html" title="class in &lt;Unnamed&gt;">Album</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#addAlbum-java.util.Scanner-">addAlbum</a></span>(java.util.Scanner&nbsp;scan)</code>
<div class="block">addAlbum is used to add albums thanks to the "a" option.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="AudioBook.html" title="class in &lt;Unnamed&gt;">AudioBook</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#addAudioBook-java.util.Scanner-">addAudioBook</a></span>(java.util.Scanner&nbsp;scan)</code>
<div class="block">addAudioBook is used to add songs thanks to the "l" option.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#addPlaylist-java.util.Scanner-java.util.ArrayList-java.util.ArrayList-">addPlaylist</a></span>(java.util.Scanner&nbsp;scan,
           java.util.ArrayList&lt;<a href="Song.html" title="class in &lt;Unnamed&gt;">Song</a>&gt;&nbsp;songs,
           java.util.ArrayList&lt;<a href="AudioBook.html" title="class in &lt;Unnamed&gt;">AudioBook</a>&gt;&nbsp;audiobooks)</code>
<div class="block">addPlaylist is used to add playlist thanks to the "p" option.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="Song.html" title="class in &lt;Unnamed&gt;">Song</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#addSong-java.util.Scanner-">addSong</a></span>(java.util.Scanner&nbsp;scan)</code>
<div class="block">addSong is used to add songs thanks to the "c" option.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#addSongToAlbum-java.util.Scanner-java.util.ArrayList-java.util.ArrayList-">addSongToAlbum</a></span>(java.util.Scanner&nbsp;scan,
              java.util.ArrayList&lt;<a href="Album.html" title="class in &lt;Unnamed&gt;">Album</a>&gt;&nbsp;albums,
              java.util.ArrayList&lt;<a href="Song.html" title="class in &lt;Unnamed&gt;">Song</a>&gt;&nbsp;songs)</code>
<div class="block">addSongToAlbum is called by the "+" command in order to add a song to an album.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#contentOfAlbum-java.util.ArrayList-">contentOfAlbum</a></span>(java.util.ArrayList&lt;<a href="Album.html" title="class in &lt;Unnamed&gt;">Album</a>&gt;&nbsp;albums)</code>
<div class="block">contentOfAlbum is called by the "AC" command in order to display the content of a chosen album.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#contentOfPlaylist-java.util.ArrayList-">contentOfPlaylist</a></span>(java.util.ArrayList&lt;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&gt;&nbsp;playlists)</code>
<div class="block">contentOfPlaylist is called by the "PC" command in order to display the content of a chosen playlist.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.util.ArrayList&lt;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#delPlaylist-java.util.ArrayList-">delPlaylist</a></span>(java.util.ArrayList&lt;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&gt;&nbsp;playlists)</code>
<div class="block">delPlaylist is called by the "-" command in order to delete a playlist.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.util.ArrayList</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#extract-java.lang.String-">extract</a></span>(java.lang.String&nbsp;filename)</code>
<div class="block">Extract is used to print the content of the files and put them in the ArrayList used to add elements.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#listAlbumsByDate--">listAlbumsByDate</a></span>()</code>
<div class="block">listAlbumsByDate is called by the "AD" command in order to list the albums sorted by the date of release.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#listAlbumsByGenre--">listAlbumsByGenre</a></span>()</code>
<div class="block">listAlbumsByGenre is called by the "AG" command in order to list the albums sorted by the genre of their songs.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#listAudioBooksByAuthor--">listAudioBooksByAuthor</a></span>()</code>
<div class="block">listAudioBooksByAuthor is called by the "BA" command in order to list the audiobooks sorted by authors.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#listById-java.lang.String-">listById</a></span>(java.lang.String&nbsp;filename)</code>
<div class="block">list is called when using the "AB", "S", "A" and "P" commands in order to list the elements in respective files.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#listPlaylistsByName--">listPlaylistsByName</a></span>()</code>
<div class="block">listPlaylistsByName is called when using the "PN" command in order to list the playlists sorted by their name.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#main-java.lang.String:A-">main</a></span>(java.lang.String[]&nbsp;args)</code>
<div class="block">The main method is used to launch the app.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="jMusicHub.html#save-java.lang.String-java.util.ArrayList-">save</a></span>(java.lang.String&nbsp;filename,
    java.util.ArrayList&nbsp;elements)</code>
<div class="block">save is used by the command "s".</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="jMusicHub--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>jMusicHub</h4>
<pre>public&nbsp;jMusicHub()</pre>
<div class="block">Constructor method, it is calling every methods and contains the command prompt.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Song.html" title="class in &lt;Unnamed&gt;"><code>Song</code></a>, 
<a href="AudioBook.html" title="class in &lt;Unnamed&gt;"><code>AudioBook</code></a>, 
<a href="Album.html" title="class in &lt;Unnamed&gt;"><code>Album</code></a>, 
<a href="Playlist.html" title="class in &lt;Unnamed&gt;"><code>Playlist</code></a>, 
<a href="Genre.html" title="enum in &lt;Unnamed&gt;"><code>Genre</code></a>, 
<a href="Category.html" title="enum in &lt;Unnamed&gt;"><code>Category</code></a>, 
<a href="Language.html" title="enum in &lt;Unnamed&gt;"><code>Language</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="addSong-java.util.Scanner-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addSong</h4>
<pre>public static&nbsp;<a href="Song.html" title="class in &lt;Unnamed&gt;">Song</a>&nbsp;addSong(java.util.Scanner&nbsp;scan)</pre>
<div class="block">addSong is used to add songs thanks to the "c" option.
 It prompts to the user a series of interrogations, asks to confirm.
 A new song is then created and returned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scan</code> - Scanner</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>newSong Song</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Song.html" title="class in &lt;Unnamed&gt;"><code>Song</code></a></dd>
</dl>
</li>
</ul>
<a name="addAudioBook-java.util.Scanner-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAudioBook</h4>
<pre>public static&nbsp;<a href="AudioBook.html" title="class in &lt;Unnamed&gt;">AudioBook</a>&nbsp;addAudioBook(java.util.Scanner&nbsp;scan)</pre>
<div class="block">addAudioBook is used to add songs thanks to the "l" option.
 It prompts to the user a series of interrogations, asks to confirm.
 A new audiobook is then created and returned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scan</code> - Scanner</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>newAudioBook AudioBook</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="AudioBook.html" title="class in &lt;Unnamed&gt;"><code>AudioBook</code></a></dd>
</dl>
</li>
</ul>
<a name="addAlbum-java.util.Scanner-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAlbum</h4>
<pre>public static&nbsp;<a href="Album.html" title="class in &lt;Unnamed&gt;">Album</a>&nbsp;addAlbum(java.util.Scanner&nbsp;scan)</pre>
<div class="block">addAlbum is used to add albums thanks to the "a" option.
 It prompts to the user a series of interrogations, asks to confirm.
 A new album is then created and returned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scan</code> - Scanner</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>newAlbum Album</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Album.html" title="class in &lt;Unnamed&gt;"><code>Album</code></a></dd>
</dl>
</li>
</ul>
<a name="addPlaylist-java.util.Scanner-java.util.ArrayList-java.util.ArrayList-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addPlaylist</h4>
<pre>public static&nbsp;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&nbsp;addPlaylist(java.util.Scanner&nbsp;scan,
                                   java.util.ArrayList&lt;<a href="Song.html" title="class in &lt;Unnamed&gt;">Song</a>&gt;&nbsp;songs,
                                   java.util.ArrayList&lt;<a href="AudioBook.html" title="class in &lt;Unnamed&gt;">AudioBook</a>&gt;&nbsp;audiobooks)</pre>
<div class="block">addPlaylist is used to add playlist thanks to the "p" option.
 It prompts to the user a series of interrogations, asks to confirm.
 A new playlist is then created and returned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scan</code> - Scanner</dd>
<dd><code>songs</code> - ArrayList</dd>
<dd><code>audiobooks</code> - ArrayList</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>newPlaylist Playlist</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Playlist.html" title="class in &lt;Unnamed&gt;"><code>Playlist</code></a></dd>
</dl>
</li>
</ul>
<a name="save-java.lang.String-java.util.ArrayList-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>save</h4>
<pre>public static&nbsp;void&nbsp;save(java.lang.String&nbsp;filename,
                        java.util.ArrayList&nbsp;elements)</pre>
<div class="block">save is used by the command "s".
 It is used to serialize (save) arrays of a list into the type's file.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>filename</code> - String</dd>
<dd><code>elements</code> - ArrayList</dd>
</dl>
</li>
</ul>
<a name="listById-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listById</h4>
<pre>public static&nbsp;void&nbsp;listById(java.lang.String&nbsp;filename)</pre>
<div class="block">list is called when using the "AB", "S", "A" and "P" commands in order to list the elements in respective files.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>filename</code> - String</dd>
</dl>
</li>
</ul>
<a name="listPlaylistsByName--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listPlaylistsByName</h4>
<pre>public static&nbsp;void&nbsp;listPlaylistsByName()</pre>
<div class="block">listPlaylistsByName is called when using the "PN" command in order to list the playlists sorted by their name.
 To achieve that, I had to put names in uppercase with getName from Playlist.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Playlist.html#getName--"><code>Playlist.getName()</code></a></dd>
</dl>
</li>
</ul>
<a name="listAlbumsByDate--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listAlbumsByDate</h4>
<pre>public static&nbsp;void&nbsp;listAlbumsByDate()</pre>
<div class="block">listAlbumsByDate is called by the "AD" command in order to list the albums sorted by the date of release.</div>
</li>
</ul>
<a name="listAlbumsByGenre--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listAlbumsByGenre</h4>
<pre>public static&nbsp;void&nbsp;listAlbumsByGenre()</pre>
<div class="block">listAlbumsByGenre is called by the "AG" command in order to list the albums sorted by the genre of their songs.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Album.html#getGenre--"><code>Album.getGenre()</code></a></dd>
</dl>
</li>
</ul>
<a name="listAudioBooksByAuthor--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listAudioBooksByAuthor</h4>
<pre>public static&nbsp;void&nbsp;listAudioBooksByAuthor()</pre>
<div class="block">listAudioBooksByAuthor is called by the "BA" command in order to list the audiobooks sorted by authors.</div>
</li>
</ul>
<a name="extract-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>extract</h4>
<pre>public static&nbsp;java.util.ArrayList&nbsp;extract(java.lang.String&nbsp;filename)</pre>
<div class="block">Extract is used to print the content of the files and put them in the ArrayList used to add elements.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>filename</code> - String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>ArrayList</dd>
</dl>
</li>
</ul>
<a name="addSongToAlbum-java.util.Scanner-java.util.ArrayList-java.util.ArrayList-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addSongToAlbum</h4>
<pre>public static&nbsp;void&nbsp;addSongToAlbum(java.util.Scanner&nbsp;scan,
                                  java.util.ArrayList&lt;<a href="Album.html" title="class in &lt;Unnamed&gt;">Album</a>&gt;&nbsp;albums,
                                  java.util.ArrayList&lt;<a href="Song.html" title="class in &lt;Unnamed&gt;">Song</a>&gt;&nbsp;songs)</pre>
<div class="block">addSongToAlbum is called by the "+" command in order to add a song to an album.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scan</code> - Scanner</dd>
<dd><code>albums</code> - ArrayList</dd>
<dd><code>songs</code> - ArrayList</dd>
</dl>
</li>
</ul>
<a name="delPlaylist-java.util.ArrayList-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delPlaylist</h4>
<pre>public static&nbsp;java.util.ArrayList&lt;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&gt;&nbsp;delPlaylist(java.util.ArrayList&lt;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&gt;&nbsp;playlists)</pre>
<div class="block">delPlaylist is called by the "-" command in order to delete a playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playlists</code> - ArrayList</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>playlists ArrayList</dd>
</dl>
</li>
</ul>
<a name="contentOfPlaylist-java.util.ArrayList-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contentOfPlaylist</h4>
<pre>public static&nbsp;void&nbsp;contentOfPlaylist(java.util.ArrayList&lt;<a href="Playlist.html" title="class in &lt;Unnamed&gt;">Playlist</a>&gt;&nbsp;playlists)</pre>
<div class="block">contentOfPlaylist is called by the "PC" command in order to display the content of a chosen playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playlists</code> - ArrayList</dd>
</dl>
</li>
</ul>
<a name="contentOfAlbum-java.util.ArrayList-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contentOfAlbum</h4>
<pre>public static&nbsp;void&nbsp;contentOfAlbum(java.util.ArrayList&lt;<a href="Album.html" title="class in &lt;Unnamed&gt;">Album</a>&gt;&nbsp;albums)</pre>
<div class="block">contentOfAlbum is called by the "AC" command in order to display the content of a chosen album.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>albums</code> - ArrayList</dd>
</dl>
</li>
</ul>
<a name="main-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>main</h4>
<pre>public static&nbsp;void&nbsp;main(java.lang.String[]&nbsp;args)</pre>
<div class="block">The main method is used to launch the app.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>args</code> - String[]</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li><a href="index-all.html">Index</a></li>
<li><a href="help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="Genre.html" title="enum in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="Language.html" title="enum in &lt;Unnamed&gt;"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="index.html?jMusicHub.html" target="_top">Frames</a></li>
<li><a href="jMusicHub.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>