public class FSComparator
extends java.lang.Object
implements java.util.Comparator
Entries are sorted first by file type in decending order, then by name in
ascending order. File Types:
3 - NOT_EXIST
2 - DIRECTORY
1 - FILE
0 - UNSPECIFIED
The name comparisons are ordered according to the current locale. The comparison is case-insensitive.
| Constructor and Description |
|---|
FSComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order.
|
public int compare(java.lang.Object o1,
java.lang.Object o2)
throws java.lang.ClassCastException
compare in interface java.util.Comparatorjava.lang.ClassCastException - if the arguments' types prevent them from
being compared by this Comparator.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.