|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ext.helliker.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(java.lang.Object o1,
java.lang.Object o2)
Compares the objects. |
boolean |
equals(java.lang.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(java.lang.Object obj)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
obj
- the object to test
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- one object to compareo2
- another object to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |