Package org.openjdk.jmc.common.util
Class LabeledIdentifier
- java.lang.Object
-
- org.openjdk.jmc.common.util.LabeledIdentifier
-
- All Implemented Interfaces:
IDescribable
public class LabeledIdentifier extends Object implements IDescribable
An identifier with a name and a description. The identifier value is composed of a string and a long value, but the actual values of these should normally not be that interesting. The important part is that it can be compared usingequals(Object)
.
-
-
Constructor Summary
Constructors Constructor Description LabeledIdentifier(String interfaceId, long implId, String name, String description)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDeclaredDescription()
ThegetDescription()
method gives a generated description.String
getDescription()
long
getImplementationId()
String
getInterfaceId()
String
getName()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
LabeledIdentifier
public LabeledIdentifier(String interfaceId, long implId, String name, String description)
Create a new instance.- Parameters:
interfaceId
- interface part of the identifier valueimplId
- implementation part of the identifier valuename
- identifier namedescription
- identifier description
-
-
Method Detail
-
getInterfaceId
public String getInterfaceId()
- Returns:
- interface part of the identifier value
-
getImplementationId
public long getImplementationId()
- Returns:
- implementation part of the identifier value
-
getName
public String getName()
- Specified by:
getName
in interfaceIDescribable
- Returns:
- the name of this object
-
getDeclaredDescription
public String getDeclaredDescription()
ThegetDescription()
method gives a generated description. Use this method to get the description passed into the constructor.- Returns:
- identifier description
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceIDescribable
- Returns:
- the description of this object
-
-