@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 Identifier
public java.lang.String getValue()
getValue
in interface Identifier
public java.lang.String getUrl()
getUrl
in interface Identifier
public java.lang.String getNotes()
getNotes
in interface Identifier
public void setConfidence(Confidence confidence)
setConfidence
in interface Identifier
confidence
- the value of confidencepublic void setUrl(java.lang.String url)
setUrl
in interface Identifier
url
- the value of URLpublic void setNotes(java.lang.String notes)
setNotes
in interface Identifier
notes
- new value of notespublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the identifier to comparepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public 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.