Remove exported everywhere.
[SquirrelJME.git] / modules / tool-classfile / src / main / java / net / multiphasicapps / classfile / ClassIdentifier.java
blobac9bfc55bb4063bdd86e8f53d5990d22bf5a0e9f
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 GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package net.multiphasicapps.classfile;
12 /**
13 * This is used to identify the fragment of a class or package.
15 * @since 2017/09/27
17 public final class ClassIdentifier
18 extends Identifier
19 implements Comparable<ClassIdentifier>
21 /**
22 * Initializes the class name.
24 * @param __s The class name.
25 * @since 2017/09/27
27 public ClassIdentifier(String __s)
29 super(__s);
32 /**
33 * {@inheritDoc}
34 * @since 2017/10/02
36 @Override
37 public int compareTo(ClassIdentifier __o)
39 return this.toString().compareTo(__o.toString());
42 /**
43 * {@inheritDoc}
44 * @since 2017/09/27
46 @Override
47 public boolean equals(Object __o)
49 return (__o instanceof ClassIdentifier) && super.equals(__o);
52 /**
53 * {@inheritDoc}
54 * @since 2021/01/19
56 @Override
57 public int hashCode()
59 return this.string.hashCode();