|
|||||||||
| Home >> All >> jgift >> [ search overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jgift.search
Class SearchResultGroup

java.lang.Objectjgift.search.SearchResult
jgift.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.
|
|||||||||
| Home >> All >> jgift >> [ search overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC