|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthelliker.id3.MP3Comparator
public class MP3Comparator
Description: This class is a comparator that is ideal for sorting mp3s. The MP3File class uses this object to implement its compareTo method. This works really well for playlists too because it has an order of precedence that attempts to sort the mp3s so that the tracks of the same artists and albums are together and that they are sorted by track number. If an error occurs while doing the comparison, the paths of the mp3s are compared.
| Constructor Summary | |
|---|---|
MP3Comparator()
|
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
Compares the objects. |
boolean |
equals(Object obj)
Returns true if the specified object is an MP3Comparator |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP3Comparator()
| Method Detail |
|---|
public boolean equals(Object obj)
equals in interface Comparatorequals in class Objectobj - the object to test
public int compare(Object o1,
Object o2)
compare in interface Comparatoro1 - one object to compareo2 - another object to compare
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||