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(java.lang.Object fromType,
java.lang.Object toType,
java.util.function.Function<F,T> conversion)
Create a converter
|
java.lang.Object |
getFromType()
Returns the type whose instances can be converted by this converter.
|
java.lang.Object |
getToType()
Returns the type to which this converter can convert.
|
java.lang.Object getFromType()
java.lang.Object getToType()
T convert(F fromObject)
fromObject - the object to convert, of type getFromType()getToType()static <F,T> IConverter<F,T> create(java.lang.Object fromType, java.lang.Object toType, java.util.function.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.