|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.AbstractSearchResult org.xnap.plugin.opennap.net.OpenNapSearchResult
public class OpenNapSearchResult
Immutable.
Field Summary |
---|
Fields inherited from interface org.xnap.search.SearchResult |
---|
BITRATE, FREQUENCY, HIDE_PREFIX, LENGTH, MD5, SHA1, URN |
Constructor Summary | |
---|---|
OpenNapSearchResult(SearchFilter filter,
long filesize,
int bitrate,
int frequency,
int length,
OpenNapUser user,
java.lang.String filename,
java.lang.String md5)
|
Method Summary | |
---|---|
boolean |
canGroup(SearchResult result)
Returns true, if this object and result can be grouped
together. |
SearchResultContainer |
createContainer()
Creates a group root that has this object's properties. |
boolean |
equals(java.lang.Object o)
|
javax.swing.Action[] |
getActions()
Returns the actions for this search result. |
int |
getAvailability()
Returns a score between 1 and 255. |
java.lang.String |
getFilename()
Returns the full filename. |
long |
getFilesize()
Returns the filesize. |
SearchFilter |
getFilter()
|
java.lang.Object |
getHash()
Used for grouping of results. |
javax.swing.Icon |
getIcon()
Returns null. |
OpenNapUser |
getOpenNapUser()
|
Peer |
getPeer()
Returns the peer that offer this result for download. |
Plugin |
getPlugin()
Returns the OpenNap plugin. |
void |
setChild(OpenNapSearchResult result)
Sets result as a child of this result. |
Methods inherited from class org.xnap.search.AbstractSearchResult |
---|
get, getPath, getShortFilename, getSourcesCount, keys, put |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenNapSearchResult(SearchFilter filter, long filesize, int bitrate, int frequency, int length, OpenNapUser user, java.lang.String filename, java.lang.String md5)
Method Detail |
---|
public boolean canGroup(SearchResult result)
SearchResult
result
can be grouped
together.
public SearchResultContainer createContainer()
SearchResult
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public javax.swing.Action[] getActions()
SearchResult
public int getAvailability()
SearchResult
public java.lang.String getFilename()
SearchResult
SearchFilter
for
matching.
xnap.search.SearchFilter
public long getFilesize()
public SearchFilter getFilter()
public java.lang.Object getHash()
SearchResult
public javax.swing.Icon getIcon()
AbstractSearchResult
getIcon
in interface SearchResult
getIcon
in class AbstractSearchResult
public OpenNapUser getOpenNapUser()
public Plugin getPlugin()
public Peer getPeer()
public void setChild(OpenNapSearchResult result)
result
as a child of this result.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |