|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.io.comparator.AbstractFileComparator
abstract class AbstractFileComparator
Abstract file Comparator which provides sorting for file arrays and lists.
| Constructor Summary | |
|---|---|
AbstractFileComparator()
|
|
| Method Summary | |
|---|---|
java.io.File[] |
sort(java.io.File... files)
Sort an array of files. |
java.util.List<java.io.File> |
sort(java.util.List<java.io.File> files)
Sort a List of files. |
java.lang.String |
toString()
String representation of this file comparator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
compare, equals |
| Constructor Detail |
|---|
AbstractFileComparator()
| Method Detail |
|---|
public java.io.File[] sort(java.io.File... files)
This method uses Arrays.sort(Object[], Comparator)
and returns the original array.
files - The files to sort, may be null
public java.util.List<java.io.File> sort(java.util.List<java.io.File> files)
This method uses Collections.sort(List, Comparator)
and returns the original list.
files - The files to sort, may be null
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||