2 * XdccDownloader - Pack.java - Copyright © 2013 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.xdcc.data;
21 * A pack is a downloadable file offered by a {@link Bot}.
23 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
27 /** The ID of the pack. */
28 private final String id;
30 /** The size of the pack. */
31 private final String size;
33 /** The name of the pack. */
34 private final String name;
42 * The size of the pack
44 * The name of the pack
46 public Pack(String id, String size, String name) {
57 * Returns the ID of the pack. The ID is only guaranteed to be unique within a
60 * @return The ID of the pack
67 * Returns the size of the pack. The size can contain decimal fractions and
68 * unit denotifiers, such as “1.2G”.
70 * @return The size of the pack
72 public String size() {
77 * Returns the name of the pack. This is usually the name of the single file
78 * that makes up this pack.
80 * @return The name of the pack
82 public String name() {