类 ZoneIdToTimeZoneConverter

java.lang.Object
cn.taketoday.core.conversion.support.ZoneIdToTimeZoneConverter
所有已实现的接口:
Converter<ZoneId,TimeZone>

final class ZoneIdToTimeZoneConverter extends Object implements Converter<ZoneId,TimeZone>
Simple converter from Java 8's ZoneId to TimeZone.

Note that Framework'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().

从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 构造器详细资料

    • ZoneIdToTimeZoneConverter

      ZoneIdToTimeZoneConverter()
  • 方法详细资料

    • convert

      public TimeZone convert(ZoneId source)
      从接口复制的说明: Converter
      Convert the source object of type S to target type T.
      指定者:
      convert 在接口中 Converter<ZoneId,TimeZone>
      参数:
      source - the source object to convert, which must be an instance of S (never null)
      返回:
      the converted object, which must be an instance of T (potentially null)