public class DefaultSemanticIdentifier extends AbstractSemanticIdentifier
DefaultSemanticIdentifier class implements a default
version of the SemanticIdentifier interface that stores the
SemanticLabel the identifier is for and the unique identifier
integer.
Only implementations of SemanticIdentifierMap should instantiate a
DefaultSemanticIdentifier directly. All other uses should access
a SemanticIdentifier through a SemanticIdentifierMap.| Constructor and Description |
|---|
DefaultSemanticIdentifier(SemanticLabel label,
int identifier)
Creates a new instance of SemanticIdentifier.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIdentifier()
Gets the integer identifier for the SemanticLabel
|
SemanticLabel |
getLabel()
Gets the SemanticLabel.
|
compareTo, equals, equals, hashCodepublic DefaultSemanticIdentifier(SemanticLabel label, int identifier)
label - The SemanticLabel that is identifiedidentifier - The identifier for the labelpublic SemanticLabel getLabel()
public int getIdentifier()