public class JFileTree.FileDirectoryNodeComparator extends java.lang.Object implements java.util.Comparator<FileDirectoryNode>
构造器和说明 |
---|
JFileTree.FileDirectoryNodeComparator() |
限定符和类型 | 方法和说明 |
---|---|
int |
compare(FileDirectoryNode v1,
FileDirectoryNode v2)
This method should return > 0 if v1 is greater than v2, 0 if
v1 is equal to v2, or < 0 if v1 is less than v2.
|
public int compare(FileDirectoryNode v1, FileDirectoryNode v2)
compare
在接口中 java.util.Comparator<FileDirectoryNode>
v1
- comparison value.值1v2
- comparison value.值2