Class TorrentFilter
java.lang.Object
com.biglybt.ui.console.commands.TorrentFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTorrents(List torrentsToMatch, String filter) tries our two different matching algorithms using the supplied filter against the list of torrents in the ConsoleInput objectgetTorrents(List torrentsToMatch, List args) first tries to match torrents by concatenating all of the arguments.private ListmatchRange(List torrents, String filter) matches a range of torrents.private ListmatchWildcard(List torrents, String filter) attempst to match a wildcard against the list of torrents by checking their display nameprivate StringwildcardToPattern(String wild) converts the wildcard (eg: tran*) into a regular expression - (tran.*)
-
Field Details
-
rangePattern
-
-
Constructor Details
-
TorrentFilter
public TorrentFilter()
-
-
Method Details
-
matchRange
-
matchWildcard
-
wildcardToPattern
-
getTorrents
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
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
-