Class HintValueConverter.StringToInteger

    • Constructor Detail

      • StringToInteger

        public StringToInteger()
        Construct a converter that will simply translate a numeric string to a integer.
      • StringToInteger

        public StringToInteger​(String[] strings,
                               int[] numbers)
        Construct a converter that will translate any of the given strings to corresponding integer. Both arrays must not be null, must not contain null elements and must have the same dimension.
        Parameters:
        strings -
        numbers -
    • Method Detail

      • convert

        public Object convert​(Object s)
        Description copied from interface: HintValueConverter
        Convert the user-specified value to a kernel consumable value.
        Specified by:
        convert in interface HintValueConverter
        Parameters:
        s - the user-specified value
        Returns:
        an equivalent value consumable by a kernel construct.