Add file that the standalone Jar should be ran and not extracted; Remove lombok docum...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / swm / InternalName.java
blobf87b8427cf1182b6faac4078e403108522cead50
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.plugin.swm;
12 /**
13 * This represents an internal project name which is used by SquirrelJME.
15 * @since 2017/12/31
17 public final class InternalName
18 implements MarkedProvided
20 /** The project name. */
21 protected final String name;
23 /**
24 * Initializes the internal name.
26 * @param __n The name to use.
27 * @throws NullPointerException On null arguments.
28 * @since 2017/12/31
30 public InternalName(String __n)
31 throws NullPointerException
33 if (__n == null)
34 throw new NullPointerException("NARG");
36 this.name = __n;
39 /**
40 * {@inheritDoc}
41 * @since 2017/12/31
43 @Override
44 public boolean equals(Object __o)
46 if (this == __o)
47 return true;
49 if (!(__o instanceof InternalName))
50 return false;
52 return this.name.equals(((InternalName)__o).name);
55 /**
56 * {@inheritDoc}
57 * @since 2017/12/31
59 @Override
60 public int hashCode()
62 return this.name.hashCode();
65 /**
66 * Returns the internal name.
68 * @return The internal name.
69 * @since 2017/12/31
71 public String name()
73 return this.name;
76 /**
77 * {@inheritDoc}
78 * @since 2017/12/31
80 @Override
81 public String toString()
83 return this.name;