Helper function for converting enumeration names to strings. @param en enumeration @return lower-case string with '-' replaced by '-';
(final Enum<?> en)
| 53 | * @return lower-case string with '-' replaced by '-'; |
| 54 | */ |
| 55 | public static String string(final Enum<?> en) { |
| 56 | return en.name().toLowerCase(Locale.ENGLISH).replace('_', '-'); |
| 57 | } |
| 58 | } |