Java: Check if enum contains a given string?
https://stackoverflow.com/questions/4936819/java-check-if-enum-contains-a-given-string/4936895
Guavas Enums could be your friend
if (!Enums.getIfPresent(MyData.class, "THREE").isPresent()) {
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/enum?redirectedfrom=MSDN
DO name flag enums with plural nouns or noun phrases and simple enums with singular nouns or noun phrases.
Do use a singular type name for an enumeration, unless its values are bit fields.public enum ConsoleColor { Black, Blue, Cyan, ...
Do use a plural type name for an enumeration with bit fields as values, also called a flags enum.[Flags] public enum ConsoleModifiers { Alt, Control, Shift }