ContextVariableType<T> Class  
	- java.lang. Object 
- com.microsoft. semantickernel. contextvariables. ContextVariableType<T> 
 
- com.
Type Parameters
- T
- The type of the context variable. 
public class ContextVariableType<T>
A type of context variable, with a converter to convert objects to the type.
Constructor Summary
| Constructor | Description | 
|---|---|
| ContextVariableType(ContextVariableTypeConverter<T> contextVariableTypeConverter, Class<T> clazz) | Create a new context variable type. | 
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Class<T> | getClazz() Get the class of the type. | 
| Context | getConverter() Get the converter for this type. | 
| Context | of(Object it) Create a context variable of this type from the given object, converting it to type T if necessary. | 
Methods inherited from java.lang.Object
Constructor Details
ContextVariableType
public ContextVariableType(ContextVariableTypeConverter
Create a new context variable type.
Parameters:
Method Details
getClazz
public Class
Get the class of the type.
Returns:
getConverter
public ContextVariableTypeConverter
Get the converter for this type.
Returns:
of
public ContextVariable
Create a context variable of this type from the given object, converting it to type T if necessary.
Parameters:
Returns: