public class LastModifiedResourceComparator extends Object implements Comparator<org.springframework.core.io.Resource>
| Constructor and Description |
|---|
LastModifiedResourceComparator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(org.springframework.core.io.Resource r1,
org.springframework.core.io.Resource r2)
compare in interface Comparator<org.springframework.core.io.Resource>IllegalArgumentException - if one of the resources doesn't exist or
its last modified date cannot be determinedComparator.compare(Object, Object)Copyright © 2014 Pivotal. All rights reserved.