Answers for "java check if enum contains value"

0

java check if enum contains value

The EnumUtils class has a method called isValidEnum whichChecks if the specified name is a valid enum for the class. It returns a boolean true if the String is contained in the Enum class, and a boolean false otherwise.



EnumUtils.isValidEnum(Day.class, "MONDAY")
Posted by: Guest on March-22-2022

Code answers related to "java check if enum contains value"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language