OldDataType - the type of the object to be convertedNewDataType - the type of the object returned by the conversionpublic interface DataConverter<OldDataType,NewDataType>
Note that in case this conversion is slow (e.g.: waits for external events,
like reading a file), consider using AsyncDataConverter or simply an
AsyncDataQuery for conversion.
| Modifier and Type | Method and Description |
|---|---|
NewDataType |
convertData(OldDataType data)
Converts the data from one type to another as defined by the
implementation.
|
NewDataType convertData(OldDataType data)
data - the object to be converted. This argument can be
null if the conversion supports converting null values.null, depending on the implementation.