org.archive.wayback.util.partition
Interface ElementPartitionMap<T>
- Type Parameters:
T - Specific Class which can be mapped to a Date, and added to a
Partition
- All Known Implementing Classes:
- CaptureSearchResultPartitionMap, PartitionPartitionMap
public interface ElementPartitionMap<T>
- Author:
- brad
elementToDate
Date elementToDate(T element)
- Convert an element to a Date ex:
return element.getDate();
- Parameters:
element - the element to convert
- Returns:
- the Date for the element
addElementToPartition
void addElementToPartition(T element,
Partition<T> partition)
- Add the element to a partition, possible modifying the Partition in some
way. ex:
partition.add(element);
partition.addTotal(1);
- Parameters:
element - to be addedpartition - to which the element should be added
Copyright © 2005-2011 Internet Archive. All Rights Reserved.