Skip to content

Instantly share code, notes, and snippets.

@HoweChen
Created December 18, 2019 08:27
Show Gist options
  • Save HoweChen/c62cc57b5e73cf80a2245781f0b98550 to your computer and use it in GitHub Desktop.
Save HoweChen/c62cc57b5e73cf80a2245781f0b98550 to your computer and use it in GitHub Desktop.
[字符串是否是合法enum] #Java
// should use org.apache.commons.lang3
EnumUtils.isValidEnum(enumxxx.class,str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment