org.archive.wayback.partition
Class PartitionPartitionMap
java.lang.Object
org.archive.wayback.partition.PartitionPartitionMap
- All Implemented Interfaces:
- ElementPartitionMap<Partition<CaptureSearchResult>>
public class PartitionPartitionMap
- extends Object
- implements ElementPartitionMap<Partition<CaptureSearchResult>>
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionPartitionMap
public PartitionPartitionMap()
addElementToPartition
public void addElementToPartition(Partition<CaptureSearchResult> element,
Partition<Partition<CaptureSearchResult>> partition)
- Description copied from interface:
ElementPartitionMap
- Add the element to a partition, possible modifying the Partition in some
way. ex:
partition.add(element);
partition.addTotal(1);
- Specified by:
addElementToPartition in interface ElementPartitionMap<Partition<CaptureSearchResult>>
- Parameters:
element - to be addedpartition - to which the element should be added
elementToDate
public Date elementToDate(Partition<CaptureSearchResult> element)
- Description copied from interface:
ElementPartitionMap
- Convert an element to a Date ex:
return element.getDate();
- Specified by:
elementToDate in interface ElementPartitionMap<Partition<CaptureSearchResult>>
- Parameters:
element - the element to convert
- Returns:
- the Date for the element
Copyright © 2005-2011 Internet Archive. All Rights Reserved.