S - source type in other libraryT - target type in Time4Jpublic interface Converter<S,T>
Serves as bridge to temporal types of JDK or other date and time libraries.
| Modifier and Type | Method and Description |
|---|---|
S |
from(T time4j)
Converts the Time4J-type to an external type.
|
Class<S> |
getSourceType()
Obtains the type of the source.
|
T |
translate(S source)
Converts the external type to a type in Time4J.
|
T translate(S source)
Converts the external type to a type in Time4J.
source - external objectArithmeticException - in case of numerical overflowChronoException - if conversion failsS from(T time4j)
Converts the Time4J-type to an external type.
time4j - Time4J-objectArithmeticException - in case of numerical overflowChronoException - if conversion failsCopyright © 2014–2017. All rights reserved.