|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.support.LastModifiedResourceComparator
public class LastModifiedResourceComparator
Comparator to sort resources by the file last modified time.
| Constructor Summary | |
|---|---|
LastModifiedResourceComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(org.springframework.core.io.Resource r1,
org.springframework.core.io.Resource r2)
Compare the two resources by last modified time, so that a sorted list of resources will have oldest first. |
| 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 LastModifiedResourceComparator()
| Method Detail |
|---|
public int compare(org.springframework.core.io.Resource r1,
org.springframework.core.io.Resource r2)
compare in interface java.util.Comparator<org.springframework.core.io.Resource>java.lang.IllegalArgumentException - if one of the resources doesn't exist or
its last modified date cannot be determinedComparator.compare(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||