public interface Transformer
Mapper| Modifier and Type | Method and Description |
|---|---|
Object |
transform(TypeInformation<?> type,
Object value)
Transforms the provided value to the requested type, if possible.
|
@Nullable Object transform(TypeInformation<?> type, @Nullable Object value)
The contract is that a transformer must return an object of type T
for a given type of TypeInformation<T>. This is not forced in the
signature to allow handling primitive types, as well as to avoid casting nightmares.
type - the type to map tovalue - the value to transform fromCopyright © 2016–2018 The AuthMe Team. All rights reserved.