com.capitalone.dashboard.model.LibraryPolicyThreatDisposition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
package com.capitalone.dashboard.model;
import java.util.Arrays;
public enum LibraryPolicyThreatDisposition {
Open,
Closed,
FalsePositive,
WillNotFix,
NotUsed,
Challenged,
ReviewRequested,
Unknown;
public static LibraryPolicyThreatDisposition fromString(String value) {
return Arrays.stream(values())
.filter(disposition -> disposition.toString()
.equalsIgnoreCase(value))
.findFirst().orElse(Unknown);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy