
com.capitalone.dashboard.model.LibraryPolicyThreatLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hygieia-common Show documentation
Show all versions of hygieia-common Show documentation
Core package shared by API layer and Microservices
The newest version!
package com.capitalone.dashboard.model;
/**
* Enumerates the possible statuses.
*/
public enum LibraryPolicyThreatLevel {
Critical, High, Medium, Low, None, Informational;
public static LibraryPolicyThreatLevel fromString(String value){
for(LibraryPolicyThreatLevel threatLevel : values()){
if(threatLevel.toString().equalsIgnoreCase(value)){
return threatLevel;
}
}
throw new IllegalArgumentException(value+" is not a valid LibraryPolicyThreatLevel");
}
}