Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jgift.search
Class SearchResultGroup  view SearchResultGroup download SearchResultGroup.java

java.lang.Object
  extended byjgift.search.SearchResult
      extended byjgift.search.SearchResultGroup

public class SearchResultGroup
extends SearchResult

Container for a group of search results for the exact same file in different locations.

Version:
$Revision: 1.1 $

Field Summary
private  java.util.ArrayList results
           
 
Fields inherited from class jgift.search.SearchResult
 
Constructor Summary
SearchResultGroup(java.lang.String hash)
          Create a new instance of SearchResultGroup.
 
Method Summary
 void addSearchResult(SearchResult result)
          Add a search result to this group.
 SearchResult getSearchResult(int index)
          Get the search result at the specified location.
 int getSearchResultCount()
          Get the number of results in this group.
 void sortSearchResults(java.util.Comparator comparator)
          Sort the search results in the specified order.
 
Methods inherited from class jgift.search.SearchResult
getAvailability, getFile, getFileSize, getHash, getMimeType, getServer, getUrl, getUser, setAvailability, setFile, setFileSize, setHash, setMimeType, setServer, setUrl, setUser, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

results

private java.util.ArrayList results
Constructor Detail

SearchResultGroup

public SearchResultGroup(java.lang.String hash)
Create a new instance of SearchResultGroup.

Method Detail

addSearchResult

public void addSearchResult(SearchResult result)
Add a search result to this group.


getSearchResultCount

public int getSearchResultCount()
Get the number of results in this group.


getSearchResult

public SearchResult getSearchResult(int index)
Get the search result at the specified location.


sortSearchResults

public void sortSearchResults(java.util.Comparator comparator)
Sort the search results in the specified order.