public static class Compiler.NameCode extends java.lang.Object implements java.lang.Comparable<Compiler.NameCode>
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
code
Associate code
|
(package private) java.lang.String |
name
Class name
|
Constructor and Description |
---|
Compiler.NameCode(java.lang.String name,
java.lang.String code)
Constructs NameCode
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Compiler.NameCode o)
Compare with an other couple
|
boolean |
equals(java.lang.Object obj)
Indicates if an object is this couple
|
java.lang.String |
getCode()
Return code
|
java.lang.String |
getName()
Return name
|
int |
hashCode()
Hash code
|
public Compiler.NameCode(java.lang.String name, java.lang.String code)
name
- Class namecode
- Associate codepublic int compareTo(Compiler.NameCode o)
compareTo
in interface java.lang.Comparable<Compiler.NameCode>
o
- To compare withComparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to comparetrue
if there equalsObject.equals(java.lang.Object)
public java.lang.String getCode()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()