Class Song
java.lang.Object
Song
- All Implemented Interfaces:
- java.lang.Comparable<Song>
public class Song
- extends java.lang.Object
- implements java.lang.Comparable<Song>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myTitle
private java.lang.String myTitle
myMinutes
private int myMinutes
mySeconds
private int mySeconds
Song
public Song()
Song
public Song(java.lang.String toBeParsed)
Song
public Song(Song arg)
getTitle
public java.lang.String getTitle()
getMinutes
public int getMinutes()
getSeconds
public int getSeconds()
getTotalTime
public int getTotalTime()
compareTo
public int compareTo(Song arg)
- Specified by:
compareTo
in interface java.lang.Comparable<Song>
equals
public boolean equals(Song arg)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object