|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.io.FileNameComparator
public class FileNameComparator
A comparator for file names. The path is ignored.
| Constructor Summary | |
|---|---|
FileNameComparator()
Constructs a new comparator. |
|
FileNameComparator(boolean ign)
Constructs a new comparator with suffix ignored. |
|
| Method Summary | |
|---|---|
protected int |
compare(File file1,
File file2)
Compares two file names in ascending order. |
int |
compare(Object file1,
Object file2)
Compares two file names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public FileNameComparator()
public FileNameComparator(boolean ign)
ign - true for ignored suffix.| Method Detail |
|---|
public int compare(Object file1,
Object file2)
compare in interface Comparatorfile1 - the first file to be compared.file2 - the second file to be compared.
NullPointerException - for null files.
ClassCastException - if parameters are not files.
protected int compare(File file1,
File file2)
file1 - the first file to be compared.file2 - the second file to be compared.
NullPointerException - for null files.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||