@ThreadSafe public class Evidence extends Object implements Serializable, Comparable<Evidence>
| Constructor and Description |
|---|
Evidence()
Creates a new Evidence object.
|
Evidence(String source,
String name,
String value,
Confidence confidence)
Creates a new Evidence objects.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull Evidence o)
Implementation of the comparable interface.
|
boolean |
equals(Object obj)
Implements equals for Evidence.
|
Confidence |
getConfidence()
Get the value of confidence.
|
String |
getName()
Get the value of name.
|
String |
getSource()
Get the value of source.
|
String |
getValue()
Get the value of value.
|
int |
hashCode()
Implements the hashCode for Evidence.
|
void |
setConfidence(Confidence confidence)
Set the value of confidence.
|
void |
setName(String name)
Set the value of name.
|
void |
setSource(String source)
Set the value of source.
|
void |
setValue(String value)
Set the value of value.
|
String |
toString()
Standard toString() implementation.
|
public Evidence()
public Evidence(String source, String name, String value, Confidence confidence)
source - the source of the evidence.name - the name of the evidence.value - the value of the evidence.confidence - the confidence of the evidence.public String getName()
public void setName(String name)
name - new value of namepublic String getSource()
public void setSource(String source)
source - new value of sourcepublic String getValue()
public void setValue(String value)
value - new value of valuepublic Confidence getConfidence()
public void setConfidence(Confidence confidence)
confidence - new value of confidencepublic int hashCode()
public boolean equals(Object obj)
public int compareTo(@NotNull
@NotNull Evidence o)
compareTo in interface Comparable<Evidence>o - the evidence being comparedCopyright © 2012–2020 OWASP. All rights reserved.