|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.entitymanager.logic.file.FileComparator
public class FileComparator
A Comparator for files.
First sort criteria is whether entity is instance of DirectoryFile .
second criteria is name.
| Field Summary | |
|---|---|
(package private) EntityByNameComparator |
entityByNameComparator
Comparator used for name comparison. |
| Constructor Summary | |
|---|---|
protected |
FileComparator()
Constructs a file comparator. |
| Method Summary | |
|---|---|
int |
compare(java.lang.Object entity1,
java.lang.Object entity2)
Compares its two arguments for order. |
| 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 |
|---|
EntityByNameComparator entityByNameComparator
Comparator used for name comparison.
| Constructor Detail |
|---|
protected FileComparator()
| Method Detail |
|---|
public int compare(java.lang.Object entity1,
java.lang.Object entity2)
The two arguments must be instances derived from AbstractFile.
compare in interface java.util.Comparatorentity1 - the first file to be comparedentity2 - the second file to be compared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||