X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fdata%2FBot.java;h=724f0e0c020f03db43dfd9de41935c94ba4c4627;hb=aa82fb99f45b296163464bff96bd130b7e02ce75;hp=33bec206c271ac8ca2e28070becc76ce296a0e25;hpb=118763df651faf501ce55d9cd09bbebf00654e8b;p=xudocci.git diff --git a/src/main/java/net/pterodactylus/xdcc/data/Bot.java b/src/main/java/net/pterodactylus/xdcc/data/Bot.java index 33bec20..724f0e0 100644 --- a/src/main/java/net/pterodactylus/xdcc/data/Bot.java +++ b/src/main/java/net/pterodactylus/xdcc/data/Bot.java @@ -18,9 +18,10 @@ package net.pterodactylus.xdcc.data; import java.util.Collection; +import java.util.Iterator; import java.util.Map; -import com.beust.jcommander.internal.Maps; +import com.google.common.collect.Maps; /** * A bot is a client in a {@link Network} that carries {@link Pack}s which are @@ -28,7 +29,7 @@ import com.beust.jcommander.internal.Maps; * * @author David ‘Bombe’ Roden */ -public class Bot { +public class Bot implements Iterable { /** The network this bot is on. */ private final Network network; @@ -111,6 +112,15 @@ public class Bot { } // + // ITERABLE METHODS + // + + @Override + public Iterator iterator() { + return packs.values().iterator(); + } + + // // OBJECT METHODS //