|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nl.madline.opendp500.JDPFile
Constructor Summary | |
JDPFile(java.lang.String filename,
java.lang.String mediaType)
Default constructor. |
Method Summary | |
int |
compareTo(java.lang.Object file)
|
java.lang.String |
getFilename()
Get the name of this file |
java.lang.String |
getMediaType()
Get the media type of the file |
int |
getTimesPlayed()
Get the number of times this file is played |
void |
setTimesPlayed(int timesPlayed)
Set the number of times this file is played |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDPFile(java.lang.String filename, java.lang.String mediaType)
filename
- The name of the filemediaType
- The media type of the file (AUDIO/VIDEO/PICTURE)Method Detail |
public int getTimesPlayed()
public void setTimesPlayed(int timesPlayed)
timesPlayed
- The number of times this file is playedpublic java.lang.String getFilename()
public java.lang.String getMediaType()
public int compareTo(java.lang.Object file)
compareTo
in interface java.lang.Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |