package net.pterodactylus.xdcc.data;
+import static com.google.common.base.Preconditions.checkNotNull;
+
import java.util.Collection;
import com.beust.jcommander.internal.Sets;
*
* @param name
* The name of the network
+ * @throws NullPointerException
+ * if {@code name} is {@code null}
*/
- private Network(String name) {
- this.name = name;
+ private Network(String name) throws NullPointerException {
+ this.name = checkNotNull(name, "name must not be null");
}
//