public interface SemanticIdentifier extends java.io.Serializable, java.lang.Comparable<SemanticIdentifier>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SemanticIdentifier o) |
boolean |
equals(java.lang.Object other)
Determines if this identifier is equal to another Object.
|
boolean |
equals(SemanticIdentifier other)
Determines if this identifier is equal to the given one by comparing
the identifier number only.
|
int |
getIdentifier()
Gets the integer identifier for the SemanticLabel
|
SemanticLabel |
getLabel()
Gets the SemanticLabel.
|
int |
hashCode()
Computes the hash-code for the SemanticIdentifier, which should be
equal to a call to getIdentifier.
|
int hashCode()
hashCode in class java.lang.Objectint compareTo(SemanticIdentifier o)
compareTo in interface java.lang.Comparable<SemanticIdentifier>o - boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The Object to test equality with.boolean equals(SemanticIdentifier other)
other - The other SemanticIdentifier to compare to.SemanticLabel getLabel()
int getIdentifier()