Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. Constructor Summary
  2. MusicCollection()
  3. Creates a new empty MusicCollection.
  4.  
  5. Method Summary
  6. boolean add(Song song)
  7. Adds the specified Song to this MusicCollection.
  8. boolean addAll(java.util.ArrayList<Song> songList)
  9. Adds the Songs contained in the specified ArrayList into this MusicCollection.
  10. boolean addAll(Song[] songArray)
  11. Adds the Song objects contained in the specified array of Songs into this MusicCollection.
  12. void clear()
  13. Makes this MusicCollection empty, so that it contains no Songs.
  14. java.util.ArrayList<String> getAllAlbums()
  15. Returns an ArrayList of Strings containing the titles of all albums represented by Songs in this MusicCollection.
  16. java.util.ArrayList<String> getAllArtists()
  17. Returns an ArrayList of Strings containing the names of the all artists who have produced at least one of the Songs currently stored in this MusicCollection, as given by the values of the artist attribute of the Songs stored in this MusicCollection.
  18. java.util.ArrayList<Song> getAllSongs()
  19. Returns an ArrayList containing all the Songs stored in this MusicCollection.
  20. java.util.ArrayList<String> getContributedAlbums(String artistName)
  21. Returns an ArrayList of Strings containing the titles of all albums to which the specified artist has contributed at least one of the Songs stored in this MusicCollection, as given by the values of the artist and album attributes of the Songs stored in this MusicCollection.
  22. int getSize()
  23. Returns the number of Songs currently stored in this MusicCollection.
  24. Song getSong(java.io.File path)
  25. Returns the Song contained in this MusicCollection whose path attribute is equal to the specified File, as defined by the equals() method of the File class, if such a Song exists within the MusicCollection.
  26. java.util.ArrayList<Song> getSongs(SongFilter filter)
  27. Returns an ArrayList containing all the Songs stored in this MusicCollection that are accepted by the specified SongFilter.
  28. java.util.ArrayList<Song> getSongs(String albumTitle)
  29. Returns an ArrayList containing all the Songs stored in this MusicCollection whose album attributes are equal to the specified album title.
  30. java.util.ArrayList<Song> getSongs(String artistName, String albumTitle)
  31. Returns an ArrayList containing all the Songs stored in this MusicCollection whose artist attributes are equal to the specified artist name, and whose album attributes are equal to the specified album title.
Add Comment
Please, Sign In to add comment