public class DefaultApplicationId extends java.lang.Object implements ApplicationId
Constructor and Description |
---|
DefaultApplicationId(int id,
java.lang.String name)
Creates a new application ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
short |
id()
Returns the application id.
|
java.lang.String |
name()
Returns the applications supplied identifier.
|
java.lang.String |
toString() |
public DefaultApplicationId(int id, java.lang.String name)
id
- application identifiername
- application namepublic short id()
ApplicationId
id
in interface ApplicationId
public java.lang.String name()
ApplicationId
name
in interface ApplicationId
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object