@ThreadSafe public class GenericIdentifier extends java.lang.Object implements Identifier
| Constructor and Description |
|---|
GenericIdentifier(java.lang.String value,
Confidence confidence)
Constructs a new Identifier with the specified data.
|
GenericIdentifier(java.lang.String value,
java.lang.String url,
Confidence confidence)
Constructs a new Identifier with the specified data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull Identifier o)
Implementation of the comparator interface.
|
boolean |
equals(java.lang.Object obj)
Basic implementation of equals.
|
Confidence |
getConfidence()
Get the value of confidence.
|
java.lang.String |
getNotes()
Get the value of notes from suppression notes.
|
java.lang.String |
getUrl()
Get the value of URL.
|
java.lang.String |
getValue()
Get the string representation of the Identifier.
|
int |
hashCode()
Basic implementation of hasCode.
|
void |
setConfidence(Confidence confidence)
Set the value of confidence.
|
void |
setNotes(java.lang.String notes)
Set the value of notes.
|
void |
setUrl(java.lang.String url)
Set the value of URL.
|
java.lang.String |
toString()
Standard implementation of toString; displays identifier value and type.
|
public GenericIdentifier(java.lang.String value,
Confidence confidence)
value - the identifier valueconfidence - the confidence level that the identifier is correctpublic GenericIdentifier(java.lang.String value,
java.lang.String url,
Confidence confidence)
confidence - the confidence level that the identifier is correctvalue - the identifier valueurl - the identifier URLpublic Confidence getConfidence()
getConfidence in interface Identifierpublic java.lang.String getValue()
getValue in interface Identifierpublic java.lang.String getUrl()
getUrl in interface Identifierpublic java.lang.String getNotes()
getNotes in interface Identifierpublic void setConfidence(Confidence confidence)
setConfidence in interface Identifierconfidence - the value of confidencepublic void setUrl(java.lang.String url)
setUrl in interface Identifierurl - the value of URLpublic void setNotes(java.lang.String notes)
setNotes in interface Identifiernotes - new value of notespublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the identifier to comparepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(@NotNull
@NotNull Identifier o)
compareTo in interface java.lang.Comparable<Identifier>o - the object being comparedCopyright© 2012-21 Jeremy Long. All Rights Reserved.