Share via


NumberVariableContextVariableTypeConverter<T> Class

Type Parameters

T

the type of the number

public class NumberVariableContextVariableTypeConverter<T>
extends PrimitiveVariableContextVariableTypeConverter<T>

A ContextVariableTypeConverter<T> for java.lang.Number type variables. Use, for example, ContextVariableTypes.getGlobalVariableTypeForClass(Integer.class) to get an instance of this class that works with the Integer type.

Methods inherited from ContextVariableTypeConverter

Methods inherited from PrimitiveVariableContextVariableTypeConverter

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

NumberVariableContextVariableTypeConverter

public NumberVariableContextVariableTypeConverter(Class clazz, Function fromPromptString, Function fromNumber)

Creates a new instance of the NumberVariableContextVariableTypeConverter<T> class.

Parameters:

clazz - the class
fromPromptString - the function to convert from a prompt string
fromNumber - the function to convert from a number

Applies to