org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl
Class UniqueMostRecentPickingStrategie
java.lang.Object
org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl.UniqueMostRecentPickingStrategie
- All Implemented Interfaces:
- ResourcePickingStrategie
public class UniqueMostRecentPickingStrategie
- extends Object
- implements ResourcePickingStrategie
Implementation of the @link{ResourcePickingStrategie}.
will filter out the duplicates and will hold the most recent one.
- Since:
- 0.1.2
- Author:
- tdr
|
Method Summary |
void |
addMostRecent(List<URL> filteredResources,
URL urlNew,
String resourceSearchName)
Will look to add the urlNew in the filteredResource. if duplicate exists (based on resourceSearchName) it will look at
last modification date and take the most recent one. |
List<URL> |
filter(List<URL> resources,
String resourceSearchName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueMostRecentPickingStrategie
public UniqueMostRecentPickingStrategie()
filter
public List<URL> filter(List<URL> resources,
String resourceSearchName)
- Specified by:
filter in interface ResourcePickingStrategie
- Returns:
- List
- See Also:
org.unitils.dbmaintainer.locator.resourcepickingstrategie.ResourcePickingStrategie#filter(java.util.List)
addMostRecent
public void addMostRecent(List<URL> filteredResources,
URL urlNew,
String resourceSearchName)
throws IOException
- Will look to add the urlNew in the filteredResource. if duplicate exists (based on resourceSearchName) it will look at
last modification date and take the most recent one.
- Parameters:
filteredResources - urlNew - resourceSearchName -
- Throws:
IOException
Copyright © 2014. All Rights Reserved.