Class NumberVariableContextVariableTypeConverter<T extends Number>

    • Constructor Detail

      • NumberVariableContextVariableTypeConverter

        public NumberVariableContextVariableTypeConverter​(Class<T> clazz,
                                                          Function<String,​T> fromPromptString,
                                                          Function<Number,​T> fromNumber)
        Creates a new instance of the NumberVariableContextVariableTypeConverter class.
        Parameters:
        clazz - the class
        fromPromptString - the function to convert from a prompt string
        fromNumber - the function to convert from a number