com.myjavaworld.jftp
Class RemoteFileComparator
java.lang.Object
com.myjavaworld.jftp.RemoteFileComparator
- All Implemented Interfaces:
- Comparator
public class RemoteFileComparator
- extends Object
- implements Comparator
An implementation of Comparator
interface used to compare
RemoteFile
objects. This class provides various sort crteria
such as compare by name, size, date etc.
- Version:
- 2.0
- Author:
- Sai Pullabhotla, psai [at] jMethods [dot] com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARE_BY_NAME
public static final int COMPARE_BY_NAME
- See Also:
- Constant Field Values
COMPARE_BY_TYPE
public static final int COMPARE_BY_TYPE
- See Also:
- Constant Field Values
COMPARE_BY_SIZE
public static final int COMPARE_BY_SIZE
- See Also:
- Constant Field Values
COMPARE_BY_DATE
public static final int COMPARE_BY_DATE
- See Also:
- Constant Field Values
ASC_ORDER
public static final int ASC_ORDER
- See Also:
- Constant Field Values
DESC_ORDER
public static final int DESC_ORDER
- See Also:
- Constant Field Values
RemoteFileComparator
public RemoteFileComparator()
RemoteFileComparator
public RemoteFileComparator(int compareBy)
RemoteFileComparator
public RemoteFileComparator(int compareBy,
int order)
setCompareBy
public void setCompareBy(int compareBy)
getCompareBy
public int getCompareBy()
setOrder
public void setOrder(int order)
getOrder
public int getOrder()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator
Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.