@ThreadSafe public class GenericIdentifier extends Object implements Identifier
| Constructor and Description |
|---|
GenericIdentifier(String value,
Confidence confidence)
Constructs a new Identifier with the specified data.
|
GenericIdentifier(String value,
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(Object obj)
Basic implementation of equals.
|
Confidence |
getConfidence()
Get the value of confidence.
|
String |
getNotes()
Get the value of notes from suppression notes.
|
String |
getUrl()
Get the value of URL.
|
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(String notes)
Set the value of notes.
|
void |
setUrl(String url)
Set the value of URL.
|
String |
toString()
Standard implementation of toString; displays identifier value and type.
|
public GenericIdentifier(String value, Confidence confidence)
value - the identifier valueconfidence - the confidence level that the identifier is correctpublic GenericIdentifier(String value, 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 String getValue()
getValue in interface Identifierpublic String getUrl()
getUrl in interface Identifierpublic String getNotes()
getNotes in interface Identifierpublic void setConfidence(Confidence confidence)
setConfidence in interface Identifierconfidence - the value of confidencepublic void setUrl(String url)
setUrl in interface Identifierurl - the value of URLpublic void setNotes(String notes)
setNotes in interface Identifiernotes - new value of notespublic boolean equals(Object obj)
public int hashCode()
public String toString()
public int compareTo(@NotNull
@NotNull Identifier o)
compareTo in interface Comparable<Identifier>o - the object being comparedCopyright © 2012–2020 OWASP. All rights reserved.