|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappli.diff.FileCompar2
Local class used as Comparator for file names, excluding a root part, specific to each filename item
Field Summary | |
(package private) int |
lenroot1
|
(package private) int |
lenroot2
|
(package private) java.lang.String |
root1
|
(package private) java.lang.String |
root2
|
Constructor Summary | |
FileCompar2(java.lang.String root1,
java.lang.String root2)
Constructor |
Method Summary | |
int |
compare(java.lang.Object f1,
java.lang.Object f2)
Compare method. |
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 |
Field Detail |
java.lang.String root1
java.lang.String root2
int lenroot1
int lenroot2
Constructor Detail |
public FileCompar2(java.lang.String root1, java.lang.String root2)
root1
- the root part of the first compared filename,
which should be excluded from the comparisonroot2
- the root part of the first compared filename,
which should be excluded from the comparisonMethod Detail |
public int compare(java.lang.Object f1, java.lang.Object f2)
compare
in interface java.util.Comparator
f1
- first filename in the comparisonf2
- second filename in the comparison
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |