org.gudy.azureus2.ui.console.commands
Class TorrentFilter

java.lang.Object
  extended by org.gudy.azureus2.ui.console.commands.TorrentFilter

public class TorrentFilter
extends java.lang.Object


Constructor Summary
TorrentFilter()
           
 
Method Summary
 java.util.List getTorrents(java.util.List torrentsToMatch, java.util.List args)
          first tries to match torrents by concatenating all of the arguments.
 java.util.List getTorrents(java.util.List torrentsToMatch, java.lang.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
 

Constructor Detail

TorrentFilter

public TorrentFilter()
Method Detail

getTorrents

public java.util.List getTorrents(java.util.List torrentsToMatch,
                                  java.lang.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 against
filter - filter - eg: range or glob filter
Returns:
list of matched DownloadManager objects

getTorrents

public java.util.List getTorrents(java.util.List torrentsToMatch,
                                  java.util.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 against
args - arguments to try to match
Returns:
list of matched DownloadManager objects