All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.model.LibraryPolicyThreatLevel Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show 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");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy