Class EnumMapper


  • public class EnumMapper
    extends Object
    Helper class for enums mapped between integers and strings.
    • Constructor Detail

      • EnumMapper

        public EnumMapper()
    • Method Detail

      • addMapping

        public void addMapping​(Integer key,
                               String value)
        Adds a key/value mapping
      • fromInteger

        public String fromInteger​(Integer key)
        Parameters:
        key -
        Returns:
      • fromString

        public Integer fromString​(String value,
                                  boolean matchCase)