A C D E F G I L M N P R S T

A

accept(Song) - Method in class comp202.fall2007.a5.filter.SongFilter
Determines whether the Song satisfies or passes the condition defines by this SongFilter.
add(Song) - Method in class MusicCollection
Adds the specified Song to this MusicCollection.
add(Song) - Method in class Playlist
Adds the specified Song to the end of this Playlist object.
add(int, Song) - Method in class Playlist
Inserts the specified Song at the specified position in this list, and shifts the Song currently at that position (if any) and any subsequent elements to the right (in other words, it adds one to their indices).
addAll(ArrayList<Song>) - Method in class MusicCollection
Adds the Songs contained in the specified ArrayList into this MusicCollection.
addAll(Song[]) - Method in class MusicCollection
Adds the Song objects contained in the specified array of Songs into this MusicCollection.
addAll(Playlist) - Method in class Playlist
Adds all Songs contained in the specified Playlist to the end of this Playlist, in the order in which they appear in the specified Playlist.
addAll(ArrayList<Song>) - Method in class Playlist
Adds all Songs contained in the specified ArrayList to the end of this Playlist, in the order in which they appear in the specified ArrayList.
addAll(Song[]) - Method in class Playlist
Adds all Songs contained in the specified array of Songs to the end of this Playlist, in the order in which they appear in the specified array.
ASCENDING_ALBUM_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the album title attributes of Songs.
ASCENDING_ALBUM_DISC_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order equivalent to applying ASCENDING_ALBUM_COMPARATOR, ASCENDING_DISC_COMPARATOR, and ASCENDING_TRACK_COMPARATOR, in that order, until one of them determines that a Song occurs before or after the other, or until all three have been tried without one of them determining that one Song occurs before or after another.
ASCENDING_ARTIST_ALBUM_DISC_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order equivalent to applying ASCENDING_ARTIST_COMPARATOR, ASCENDING_ALBUM_COMPARATOR, ASCENDING_DISC_COMPARATOR, and ASCENDING_TRACK_COMPARATOR, in that order, until one of them determines that a Song occurs before or after the other, or until all four have been tried without one of them determining that one Song occurs before or after another.
ASCENDING_ARTIST_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the artist name attributes of Songs.
ASCENDING_DISC_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the disc number attributes of Songs.
ASCENDING_DISC_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order equivalent to applying ASCENDING_DISC_COMPARATOR and ASCENDING_TRACK_COMPARATOR, in that order, until one of them determines that a Song occurs before or after the other, or until both have been tried without one of them determining that one Song occurs before or after another.
ASCENDING_LENGTH_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the length attributes of Songs.
ASCENDING_PATH_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the path attributes of Song.
ASCENDING_TITLE_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the track title attributes of Songs.
ASCENDING_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the track number attributes of Songs.
AT_LEAST - Static variable in class comp202.fall2007.a5.filter.NumberMatchType
Implements number matching as a comparison for inequality where the value of the first argument is greater than or equal to the value of the second argument.
AT_MOST - Static variable in class comp202.fall2007.a5.filter.NumberMatchType
Implements number matching as a comparison for inequality where the value of the first argument is less than or equal to the value of the second argument.

C

clear() - Method in class MusicCollection
Makes this MusicCollection empty, so that it contains no Songs.
clear() - Method in class Playlist
Makes this Playlist object empty, so that it contains no Songs.
comp202.fall2007.a5.comparator - package comp202.fall2007.a5.comparator
 
comp202.fall2007.a5.filter - package comp202.fall2007.a5.filter
 
comp202.fall2007.a5.util - package comp202.fall2007.a5.util
 
ComparatorFactory - Class in comp202.fall2007.a5.comparator
A ComparatorFactory creates SongComparator objects that define certain orders on Songs based on their attributes.
ComparatorFactory() - Constructor for class comp202.fall2007.a5.comparator.ComparatorFactory
Creates a new ComparatorFactory.
compareTo(Song, Song) - Method in class comp202.fall2007.a5.comparator.SongComparator
Compares the two specified Songs and determines whether or not one occurs before the other in the order defined by this SongComparator.
CONTAINS - Static variable in class comp202.fall2007.a5.filter.StringMatchType
Implements String matching as substring.
createAlbumFilter(String, StringMatchType) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose album attribute matches the specified String, using a match type defined by the specified StringMatchType.
createAndFilter(ArrayList<SongFilter>) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter object which accepts a given Song if and only if all SongFilters in the specified ArrayList accept the given Song.
createAndFilter(SongFilter[]) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter object which accepts a given Song if and only if all SongFilters in the specified array accept the given Song.
createArtistFilter(String, StringMatchType) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose artist attribute matches the specified String, using a match type defined by the specified StringMatchType.
createDiscFilter(int, NumberMatchType) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose disc attribute matches the specified integer, using a match type defined by the specified NumberMatchType.
createEverythingFilter() - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts every Song.
createLengthFilter(int, NumberMatchType) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose length attribute matches the specified String, using a match type defined by the specified NumberMatchType.
createMultiComparator(ArrayList<SongComparator>) - Method in class comp202.fall2007.a5.comparator.ComparatorFactory
Creates a new SongComparator which defines an order that is the combination of the individual SongComparators in the specified ArrayList.
createMultiComparator(SongComparator[]) - Method in class comp202.fall2007.a5.comparator.ComparatorFactory
Creates a new SongComparator which defines an order that is the combination of the individual SongComparators in the specified array.
createNotFilter(SongFilter) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which is the negation of the specified SongFilter; that is, if the specified SongFilter accepts a Song, the returned SongFilter rejects it, and vice-versa.
createNothingFilter() - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which rejects every Song.
createOrFilter(ArrayList<SongFilter>) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter object which accepts a given Song if and only if at least one of the SongFilters in the specified ArrayList accepts the given Song.
createOrFilter(SongFilter[]) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter object which accepts a given Song if and only if at least one of the SongFilters in the specified array accepts the given Song.
createPathFilter(File) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose path attribute is equal to the specified File, as defined by the equality of File objects.
createSong(String) - Method in class comp202.fall2007.a5.util.SongFactory
Creates a new Song object representing the MP3 audio track stored in the file given by the specified String.
createTitleFilter(String, StringMatchType) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose title attribute matches the specified String, using a match type defined by the specified StringMatchType.
createTrackFilter(int, NumberMatchType) - Method in class comp202.fall2007.a5.filter.FilterFactory
Creates a new SongFilter which accepts all Songs whose track number attribute matches the specified integer, using a match type defined by the specified NumberMatchType.

D

DESCENDING_ALBUM_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the album title attributes of Songs.
DESCENDING_ALBUM_DISC_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order equivalent to applying DESCENDING_ALBUM_COMPARATOR, DESCENDING_DISC_COMPARATOR, and DESCENDING_TRACK_COMPARATOR, in that order, until one of them determines that a Song occurs before or after the other, or until all three have been tried without one of them determining that one Song occurs before or after another.
DESCENDING_ARTIST_ALBUM_DISC_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order equivalent to applying DESCENDING_ARTIST_COMPARATOR, DESCENDING_ALBUM_COMPARATOR, DESCENDING_DISC_COMPARATOR, and DESCENDING_TRACK_COMPARATOR, in that order, until one of them determines that a Song occurs before or after the other, or until all four have been tried without one of them determining that one Song occurs before or after another.
DESCENDING_ARTIST_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the artist name attributes of Songs.
DESCENDING_DISC_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the disc number attributes of Songs.
DESCENDING_DISC_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order equivalent to applying DESCENDING_DISC_COMPARATOR and DESCENDING_TRACK_COMPARATOR, in that order, until one of them determines that a Song occurs before or after the other, or until both have been tried without one of them determining that one Song occurs before or after another.
DESCENDING_LENGTH_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the length attributes of Songs.
DESCENDING_PATH_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the path attributes of Songs.
DESCENDING_TITLE_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the track title attributes of Songs.
DESCENDING_TRACK_COMPARATOR - Static variable in class comp202.fall2007.a5.comparator.ComparatorFactory
A SongComparator which defines an order based on the track number attributes of Songs.
disableLogging() - Static method in class comp202.fall2007.a5.util.SongFactory
Disable the Loggers used and created by the Jaudiotagger libraries.

E

EMPTY_TRACK - Static variable in class comp202.fall2007.a5.util.Song
Constant indicating that the track attribute is undefined.
enableLogging() - Static method in class comp202.fall2007.a5.util.SongFactory
Enable the Loggers used and created by the Jaudiotagger libraries.
EQUAL - Static variable in class comp202.fall2007.a5.filter.NumberMatchType
Implements number matching as a comparison for equality.
EQUALS - Static variable in class comp202.fall2007.a5.filter.StringMatchType
Implements String matching as comparison for equality.

F

FilterFactory - Class in comp202.fall2007.a5.filter
A FilterFactory provides methods to create SongFilters that define various conditions based on the attributes of Songs, or on the conditions defined by other SongFilters.
FilterFactory() - Constructor for class comp202.fall2007.a5.filter.FilterFactory
Creates a new FilterFactory.

G

get(int) - Method in class Playlist
Returns the Song at the specified position in this Playlist.
getAlbum() - Method in class comp202.fall2007.a5.util.Song
Returns the title of the album on which this Song appears.
getAllAlbums() - Method in class MusicCollection
Returns an ArrayList of Strings containing the titles of all albums represented by Songs in this MusicCollection.
getAllArtists() - Method in class MusicCollection
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.
getArtist() - Method in class comp202.fall2007.a5.util.Song
Returns the name of the artist who produced this Song.
getContributedAlbums(String) - Method in class MusicCollection
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.
getDiscNumber() - Method in class comp202.fall2007.a5.util.Song
Returns the disc number of this Song.
getFilePath() - Method in class comp202.fall2007.a5.util.Song
Returns the path of the file on disk containing the audio track represented by this Song object.
getLength() - Method in class comp202.fall2007.a5.util.Song
Returns the length of this Song in seconds.
getSize() - Method in class Playlist
Returns the number of Songs in this Playlist.
getSong(File) - Method in class MusicCollection
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.
getSongs(String) - Method in class MusicCollection
Returns a Playlist containing all the Songs stored in this MusicCollection whose album attributes are equal to the specified album title.
getSongs(String, String) - Method in class MusicCollection
Returns a Playlist 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.
getSongs(SongFilter) - Method in class MusicCollection
Returns a Playlist containing all the Songs stored in this MusicCollection that are accepted by the specified SongFilter.
getTitle() - Method in class comp202.fall2007.a5.util.Song
Returns the title of this Song.
getTrackNumber() - Method in class comp202.fall2007.a5.util.Song
Returns the track number of this Song.

I

IncorrectFileExtensionException - Exception in comp202.fall2007.a5.util
Signals that a method has attempted to read a file with an incorrect file extension.
IncorrectFileExtensionException() - Constructor for exception comp202.fall2007.a5.util.IncorrectFileExtensionException
Constructs an IncorrectFileExtensionException with null as its detail message.
IncorrectFileExtensionException(String) - Constructor for exception comp202.fall2007.a5.util.IncorrectFileExtensionException
Constructs an IncorrectFileExtensionException with the specified detail message.
IncorrectFileExtensionException(Throwable) - Constructor for exception comp202.fall2007.a5.util.IncorrectFileExtensionException
Constructs an IncorrectFileNameException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
IncorrectFileExtensionException(String, Throwable) - Constructor for exception comp202.fall2007.a5.util.IncorrectFileExtensionException
Constructs an IncorrectFileExtensionException with the specified detail message and cause.
isEmpty() - Method in class Playlist
Returns true if this Playlist is empty, that is, it contains no Songs.

L

load(File, MusicCollection) - Method in class Playlist
Loads the Songs whose paths are stored in the file given by the specified File (the playlist file) into the Playlist.

M

match(int, int) - Method in class comp202.fall2007.a5.filter.NumberMatchType
Determines whether the first specified integer value matches the second specified integer value according to the matching algorithm implemented by this NumberMatchType.
match(String, String, boolean) - Method in class comp202.fall2007.a5.filter.StringMatchType
Determines whether the first specified String matches the second specified String according to the matching algorithm implemented by this StringMatchType.
moveDown(int, int) - Method in class Playlist
Moves the Song at the specified position in the Playlist a specified number of positions towards the end of the Playlist.
moveUp(int, int) - Method in class Playlist
Moves the Song at the specified position in the Playlist a specified number of positions towards the beginning of the Playlist.
MusicCollection - Class in <Unnamed>
A MusicCollection object represents a collection of Songs.
MusicCollection() - Constructor for class MusicCollection
Creates a new empty MusicCollection.

N

NumberMatchType - Class in comp202.fall2007.a5.filter
A NumberMatchType object defines a way to determine whether two integer values match.

P

Playlist - Class in <Unnamed>
A Playlist is an ordered sequence of Songs.
Playlist() - Constructor for class Playlist
Creates a new empty Playlist.
Playlist(Playlist) - Constructor for class Playlist
Creates a new Playlist containing the same Songs as those contained in the specified Playlist, in the same order.

R

remove(int) - Method in class Playlist
Removes the Song element at the specified position in this list, and shifts any subsequent Song (if any) to the left (that is, it subtracts one from their indices).

S

save(File) - Method in class Playlist
Writes the full (absolute) path of each Song contained in this Playlist to the file whose path is given by the specified File (the playlist file).
Song - Class in comp202.fall2007.a5.util
A Song object records the attributes of a digital audio track.
Song(File, String, String, String, int, int, int) - Constructor for class comp202.fall2007.a5.util.Song
Creates a new Song object with the specified attributes.
Song(File, String, String, String, int, int) - Constructor for class comp202.fall2007.a5.util.Song
Creates a new Song object with the specified attributes, and a disc number attribute equal to 1.
SongComparator - Class in comp202.fall2007.a5.comparator
A SongComparator object defines an order on Songs.
SongComparator() - Constructor for class comp202.fall2007.a5.comparator.SongComparator
Creates a new SongComparator.
SongFactory - Class in comp202.fall2007.a5.util
A SongFactory enables the easy creation of Song objects representing digital audio tracks stored on disk.
SongFactory() - Constructor for class comp202.fall2007.a5.util.SongFactory
Creates a new SongFactory.
SongFilter - Class in comp202.fall2007.a5.filter
A SongFilter defines a condition that Songs can satisfy, and provides a method to verify whether or not a Song satisfies this condition.
SongFilter() - Constructor for class comp202.fall2007.a5.filter.SongFilter
Creates a new SongFilter.
sort(SongComparator) - Method in class Playlist
Sorts the Songs in this Playlist so that they appear in the order implemented by the specified SongComparator object.
StringMatchType - Class in comp202.fall2007.a5.filter
A StringMatchType object defines a way to determine whether two Strings match.

T

toString() - Method in class comp202.fall2007.a5.comparator.SongComparator
Returns a String representation of this SongComparator, which describes the order it defines.
toString() - Method in class comp202.fall2007.a5.filter.NumberMatchType
Returns a String representation of this NumberMatchType which describes the type of matching it represents.
toString() - Method in class comp202.fall2007.a5.filter.SongFilter
Returns a String representation of this SongFilter in the form of a boolean expression which determines the Songs it accepts and those it rejects.
toString() - Method in class comp202.fall2007.a5.filter.StringMatchType
Returns a String representation of this StringMatchType which describes the type of matching it represents.
toString() - Method in class comp202.fall2007.a5.util.Song
Returns a String representation of this Song.

A C D E F G I L M N P R S T