Package org.onosproject.core
Class DefaultApplicationId
- java.lang.Object
-
- org.onosproject.core.DefaultApplicationId
-
- All Implemented Interfaces:
ApplicationId
public class DefaultApplicationId extends Object implements ApplicationId
Application identifier.
-
-
Constructor Summary
Constructors Constructor Description DefaultApplicationId(int id, String name)
Creates a new application ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
short
id()
Returns the application id.String
name()
Returns the applications supplied identifier.String
toString()
-
-
-
Constructor Detail
-
DefaultApplicationId
public DefaultApplicationId(int id, String name)
Creates a new application ID.- Parameters:
id
- application identifiername
- application name
-
-
Method Detail
-
id
public short id()
Description copied from interface:ApplicationId
Returns the application id. This must be non-negative.- Specified by:
id
in interfaceApplicationId
- Returns:
- a short value
-
name
public String name()
Description copied from interface:ApplicationId
Returns the applications supplied identifier.- Specified by:
name
in interfaceApplicationId
- Returns:
- a string identifier
-
-