Class Evidence
java.lang.Object
org.owasp.dependencycheck.dependency.Evidence
- All Implemented Interfaces:
Serializable, Comparable<Evidence>
Evidence is a piece of information about a Dependency.
- Author:
- Jeremy Long
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintImplementation of the comparable interface.booleanImplements equals for Evidence.Get the value of confidence.getName()Get the value of name.Get the value of source.getValue()Get the value of value.inthashCode()Implements the hashCode for Evidence.booleanGet the value of fromHint.voidsetConfidence(Confidence confidence) Set the value of confidence.voidsetFromHint(boolean fromHint) Set the value of fromHint.voidSet the value of name.voidSet the value of source.voidSet the value of value.toString()Standard toString() implementation.
-
Constructor Details
-
Evidence
public Evidence()Creates a new Evidence object. -
Evidence
Creates a new Evidence objects.- Parameters:
source- the source of the evidence.name- the name of the evidence.value- the value of the evidence.confidence- the confidence of the evidence.
-
Evidence
Creates a new Evidence objects.- Parameters:
source- the source of the evidence.name- the name of the evidence.value- the value of the evidence.confidence- the confidence of the evidence.fromHint- whether the evidence was introduced by a hint.
-
-
Method Details
-
getName
-
setName
-
getSource
-
setSource
Set the value of source.- Parameters:
source- new value of source
-
getValue
-
setValue
-
getConfidence
-
setConfidence
Set the value of confidence.- Parameters:
confidence- new value of confidence
-
isFromHint
public boolean isFromHint()Get the value of fromHint.- Returns:
- the value of fromHint
-
setFromHint
public void setFromHint(boolean fromHint) Set the value of fromHint.- Parameters:
fromHint- new value of fromHint
-
hashCode
-
equals
-
compareTo
Implementation of the comparable interface.- Specified by:
compareToin interfaceComparable<Evidence>- Parameters:
o- the evidence being compared- Returns:
- an integer indicating the ordering of the two objects
-
toString
-