org.gudy.azureus2.ui.console.commands
Class TorrentFilter
java.lang.Object
org.gudy.azureus2.ui.console.commands.TorrentFilter
public class TorrentFilter
- extends Object
Method Summary |
List |
getTorrents(List torrentsToMatch,
List args)
first tries to match torrents by concatenating all of the arguments. |
List |
getTorrents(List torrentsToMatch,
String filter)
tries our two different matching algorithms using the
supplied filter against the list of torrents in the ConsoleInput object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TorrentFilter
public TorrentFilter()
getTorrents
public List getTorrents(List torrentsToMatch,
String filter)
- tries our two different matching algorithms using the
supplied filter against the list of torrents in the ConsoleInput object
- Parameters:
torrentsToMatch
- list of DownloadManager objects to attempt to match againstfilter
- filter - eg: range or glob filter
- Returns:
- list of matched DownloadManager objects
getTorrents
public List getTorrents(List torrentsToMatch,
List args)
- first tries to match torrents by concatenating all of the arguments.
if that doesn't work, attempts to match each argument individually.
- Parameters:
torrentsToMatch
- list of DownloadManager objects to attempt to match againstargs
- arguments to try to match
- Returns:
- list of matched DownloadManager objects