@UsesJava8 final class ZoneIdToTimeZoneConverter extends java.lang.Object implements Converter<java.time.ZoneId,java.util.TimeZone>
ZoneId
to TimeZone
.
Note that Spring's default ConversionService setup understands the 'from'/'to' convention
that the JSR-310 java.time
package consistently uses. That convention is implemented
reflectively in ObjectToObjectConverter
, not in specific JSR-310 converters.
It covers TimeZone.toZoneId()
as well, and also
Date.from(java.time.Instant)
and Date.toInstant()
.
TimeZone.getTimeZone(java.time.ZoneId)
Constructor and Description |
---|
ZoneIdToTimeZoneConverter() |
Modifier and Type | Method and Description |
---|---|
java.util.TimeZone |
convert(java.time.ZoneId source)
Convert the source object of type
S to target type T . |
public java.util.TimeZone convert(java.time.ZoneId source)
Converter
S
to target type T
.