import net.pterodactylus.irc.DccReceiver;
+import com.google.common.base.Predicate;
+
/**
* Information about an ongoing download.
*
*/
public class Download {
+ /** Predicate that identifies downloads that have started. */
+ public static final Predicate<Download> FILTER_RUNNING = new Predicate<Download>() {
+
+ @Override
+ public boolean apply(Download download) {
+ return download.dccReceiver() != null;
+ }
+ };
+
/** The bot that is being downloaded from. */
private final Bot bot;