Class Song

java.lang.Object
  extended by Song
All Implemented Interfaces:
java.lang.Comparable<Song>

public class Song
extends java.lang.Object
implements java.lang.Comparable<Song>


Field Summary
private  int myMinutes
           
private  int mySeconds
           
private  java.lang.String myTitle
           
 
Constructor Summary
Song()
           
Song(Song arg)
           
Song(java.lang.String toBeParsed)
           
 
Method Summary
 int compareTo(Song arg)
           
 boolean equals(Song arg)
           
 int getMinutes()
           
 int getSeconds()
           
 java.lang.String getTitle()
           
 int getTotalTime()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myTitle

private java.lang.String myTitle

myMinutes

private int myMinutes

mySeconds

private int mySeconds
Constructor Detail

Song

public Song()

Song

public Song(java.lang.String toBeParsed)

Song

public Song(Song arg)
Method Detail

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