org.archive.wayback.core
Class CaptureSearchResults

java.lang.Object
  extended by org.archive.wayback.core.SearchResults
      extended by org.archive.wayback.core.CaptureSearchResults

public class CaptureSearchResults
extends SearchResults

Version:
$Date: 2010-10-01 23:20:35 +0700 (Fri, 01 Oct 2010) $, $Revision: 3265 $
Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.core.SearchResults
RESULTS_FIRST_RETURNED, RESULTS_NUM_RESULTS, RESULTS_NUM_RETURNED, RESULTS_REQUESTED, RESULTS_TYPE, RESULTS_TYPE_CAPTURE, RESULTS_TYPE_URL
 
Constructor Summary
CaptureSearchResults()
           
 
Method Summary
 void addSearchResult(CaptureSearchResult result)
          append a result
 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
 CaptureSearchResult getClosest()
           
 Date getFirstResultDate()
           
 String getFirstResultTimestamp()
           
 Date getLastResultDate()
           
 String getLastResultTimestamp()
           
 List<CaptureSearchResult> getResults()
           
 boolean isEmpty()
           
 Iterator<CaptureSearchResult> iterator()
           
 void setClosest(CaptureSearchResult closest)
           
 int size()
           
 
Methods inherited from class org.archive.wayback.core.SearchResults
containsFilter, getCloseMatches, getCurPageNum, getFilter, getFilters, getFirstReturned, getMatchingCount, getNumPages, getNumRequested, getReturnedCount, putFilter, setCloseMatches, setFirstReturned, setMatchingCount, setNumRequested, setReturnedCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureSearchResults

public CaptureSearchResults()
Method Detail

getFirstResultTimestamp

public String getFirstResultTimestamp()
Returns:
Returns the 14-digit String Timestamp of the first Capture in this set of SearchResult objects

getFirstResultDate

public Date getFirstResultDate()
Returns:
Returns the firstResult Date.

getLastResultTimestamp

public String getLastResultTimestamp()
Returns:
Returns the 14-digit String Timestamp of the last Capture in this set of SearchResult objects

getLastResultDate

public Date getLastResultDate()

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 set
append -

isEmpty

public boolean isEmpty()

getResults

public List<CaptureSearchResult> getResults()

iterator

public Iterator<CaptureSearchResult> iterator()

size

public int size()

setClosest

public void setClosest(CaptureSearchResult closest)
Parameters:
closest - the closest to set

getClosest

public CaptureSearchResult getClosest()
Returns:
the closest


Copyright © 2005-2011 Internet Archive. All Rights Reserved.