public class Identifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
String value of the identifier
|
Modifier | Constructor and Description |
---|---|
protected |
Identifier()
Creates a void Identifier.
|
|
Identifier(Identifier i)
Creates a new Identifier.
|
|
Identifier(java.lang.String id)
Creates a new Identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Whether this object equals to an other object.
|
int |
hashCode()
Gets an int hash-code for this object.
|
java.lang.String |
toString()
Gets a string value for this object.
|
protected Identifier()
public Identifier(java.lang.String id)
id
- string value of the identifierpublic Identifier(Identifier i)
i
- an identifierpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other object that is compared topublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object