1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
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
;
13 * This is used to identify the fragment of a class or package.
17 public final class ClassIdentifier
19 implements Comparable
<ClassIdentifier
>
22 * Initializes the class name.
24 * @param __s The class name.
27 public ClassIdentifier(String __s
)
37 public int compareTo(ClassIdentifier __o
)
39 return this.toString().compareTo(__o
.toString());
47 public boolean equals(Object __o
)
49 return (__o
instanceof ClassIdentifier
) && super.equals(__o
);
59 return this.string
.hashCode();