1 package net.pterodactylus.util.fcp;
4 * Container for ARKs (address resolution keys).
6 * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
11 /** The public URI of the ARK. */
12 private final String publicURI;
14 /** The number of the ARK. */
15 private final int number;
18 * Creates a new ARK with the given URI and number.
21 * The public URI of the ARK
23 * The number of the ARK
25 public ARK(String publicURI, String number) {
26 if ((publicURI == null) || (number == null)) {
27 throw new NullPointerException(((publicURI == null) ? "publicURI" : "number") + " must not be null");
29 this.publicURI = publicURI;
31 this.number = Integer.valueOf(number);
32 } catch (NumberFormatException nfe1) {
33 throw new IllegalArgumentException("number must be numeric", nfe1);
38 * Returns the public URI of the ARK.
40 * @return The public URI of the ARK
42 public String getPublicURI() {
47 * Returns the number of the ARK.
49 * @return The number of the ARK
51 public int getNumber() {