Package org.onosproject.core
Class DefaultApplicationId
- java.lang.Object
-
- org.onosproject.core.DefaultApplicationId
-
- All Implemented Interfaces:
ApplicationId
public class DefaultApplicationId extends java.lang.Object implements ApplicationId
Application identifier.
-
-
Constructor Summary
Constructors Constructor Description DefaultApplicationId(int id, java.lang.String name)
Creates a new application ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
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 java.lang.String name()
Description copied from interface:ApplicationId
Returns the applications supplied identifier.- Specified by:
name
in interfaceApplicationId
- Returns:
- a string identifier
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-