S
- The source typeT
- The target typepublic interface Converter<S,T>
Implementations may additionally implement ConditionalConverter
.
Modifier and Type | Method and Description |
---|---|
T |
convert(S source)
Convert the source of type S to target type T.
|
T convert(S source)
source
- the source object to convert, which must be an instance of S (never null
)null
)IllegalArgumentException
- if the source could not be converted to the desired target type