org.archive.wayback.core
Class CaptureSearchResults
java.lang.Object
org.archive.wayback.core.SearchResults
org.archive.wayback.core.CaptureSearchResults
public class CaptureSearchResults
- extends SearchResults
- Version:
- $Date$, $Revision$
- Author:
- brad
| Methods inherited from class org.archive.wayback.core.SearchResults |
containsFilter, getCurPageNum, getFilter, getFilters, getFirstReturned, getMatchingCount, getNumPages, getNumRequested, getReturnedCount, putFilter, setFirstReturned, setMatchingCount, setNumRequested, setReturnedCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaptureSearchResults
public CaptureSearchResults()
getFirstResultTimestamp
public java.lang.String getFirstResultTimestamp()
- Returns:
- Returns the 14-digit String Timestamp of the first Capture in
this set of SearchResult objects
getFirstResultDate
public java.util.Date getFirstResultDate()
- Returns:
- Returns the firstResult Date.
getLastResultTimestamp
public java.lang.String getLastResultTimestamp()
- Returns:
- Returns the 14-digit String Timestamp of the last Capture in
this set of SearchResult objects
getLastResultDate
public java.util.Date getLastResultDate()
markClosest
public void markClosest(WaybackRequest wbRequest)
getClosest
public CaptureSearchResult getClosest(WaybackRequest wbRequest)
- Parameters:
wbRequest -
- Returns:
- The closest CaptureSearchResult to the request.
getClosest
public CaptureSearchResult getClosest(WaybackRequest wbRequest,
boolean useAnchor)
throws AnchorWindowTooSmallException
- Parameters:
wbRequest - useAnchor - if true, then check Request Anchor Window and Date,
throwing exception if no Result is within the Window.
- Returns:
- The closest CaptureSearchResult to the request.
- Throws:
AnchorWindowTooSmallException
addSearchResult
public void addSearchResult(CaptureSearchResult result)
- append a result
- Parameters:
result -
addSearchResult
public void addSearchResult(CaptureSearchResult result,
boolean append)
- add a result to this results, at either the begginning or at the end,
depending on the append argument
- Parameters:
result - SearchResult to add to this setappend -
isEmpty
public boolean isEmpty()
iterator
public java.util.Iterator<CaptureSearchResult> iterator()
size
public int size()
Copyright © 2005-2009 Internet Archive. All Rights Reserved.