F
- type of the source valueT
- type of the converted valuepublic interface IConverter<F,T>
Converter
.Modifier and Type | Method and Description |
---|---|
T |
convert(F fromObject)
Returns the result of the conversion of the given object.
|
static <F,T> IConverter<F,T> |
create(Object fromType,
Object toType,
Function<F,T> conversion)
Create a converter
|
Object |
getFromType()
Returns the type whose instances can be converted by this converter.
|
Object |
getToType()
Returns the type to which this converter can convert.
|
Object getFromType()
Object getToType()
T convert(F fromObject)
fromObject
- the object to convert, of type getFromType()
getToType()
static <F,T> IConverter<F,T> create(Object fromType, Object toType, Function<F,T> conversion)
fromType
- the from typetoType
- the to typeconversion
- the conversion method
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.