Package org.openjdk.jmc.common.util
Class LabeledIdentifier
java.lang.Object
org.openjdk.jmc.common.util.LabeledIdentifier
- All Implemented Interfaces:
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 using
equals(Object)
.-
Constructor Summary
ConstructorsConstructorDescriptionLabeledIdentifier
(String interfaceId, long implId, String name, String description) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
ThegetDescription()
method gives a generated description.long
getName()
int
hashCode()
toString()
-
Constructor Details
-
LabeledIdentifier
Create a new instance.- Parameters:
interfaceId
- interface part of the identifier valueimplId
- implementation part of the identifier valuename
- identifier namedescription
- identifier description
-
-
Method Details
-
getInterfaceId
- Returns:
- interface part of the identifier value
-
getImplementationId
public long getImplementationId()- Returns:
- implementation part of the identifier value
-
getName
- Specified by:
getName
in interfaceIDescribable
- Returns:
- the name of this object
-
getDeclaredDescription
ThegetDescription()
method gives a generated description. Use this method to get the description passed into the constructor.- Returns:
- identifier description
-
getDescription
- Specified by:
getDescription
in interfaceIDescribable
- Returns:
- the description of this object
-
hashCode
public int hashCode() -
equals
-
toString
-