org.mycore.frontend.iview
Class MCRFileNodeComparator
java.lang.Object
org.mycore.frontend.iview.MCRFileNodeComparator
- All Implemented Interfaces:
- Comparator
public class MCRFileNodeComparator
- extends Object
- implements Comparator
- Version:
- $Revision: 8196 $ $Date: 2006-05-08 17:17:51 +0200 (Mo, 08 Mai 2006) $
- Author:
- Thomas Scheffler (yagee), Andreas Trappe
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final int NAME
- See Also:
- Constant Field Values
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
LAST_MODIFIED
public static final int LAST_MODIFIED
- See Also:
- Constant Field Values
ASCENDING
public static final int ASCENDING
- See Also:
- Constant Field Values
DESCENDING
public static final int DESCENDING
- See Also:
- Constant Field Values
MCRFileNodeComparator
public MCRFileNodeComparator(int criteria,
int sortOrder)
compare
public int compare(Object arg0,
Object arg1)
- Specified by:
compare in interface Comparator
compareSize
public int compareSize(MCRFilesystemNode node1,
MCRFilesystemNode node2)
compareName
public int compareName(MCRFilesystemNode node1,
MCRFilesystemNode node2)
compareLastModified
public int compareLastModified(MCRFilesystemNode node1,
MCRFilesystemNode node2)