T
- The type of object that this delegate converts the format of.TFormatType
- The class of the format object itself. This can be a base class.@FunctionalInterface public static interface FormatConversionCallback.Function<T,TFormatType>
Modifier and Type | Method and Description |
---|---|
T |
invoke(T from,
TFormatType targetFormat)
A delegate to convert a
T from one format to another. |
T invoke(T from, TFormatType targetFormat)
T
from one format to another.from
- The instance of T
to convert.targetFormat
- The TFormatType
to convert to.T
equivalent to from
,
in the new TFormatType
targetFormat
.