-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.ConfigurableComponent,icu.windea.breezeframework.core.component.ConfigurableConverter,icu.windea.breezeframework.core.component.Converter,icu.windea.breezeframework.core.component.TypedComponent,icu.windea.breezeframework.core.model.Configurable
@ConfigParam(name = format, type = String, defaultValue = yyyy-MM-dd HH:mm:ss)@ConfigParam(name = locale, type = String | Locale, defaultValue = <default>)@ConfigParam(name = timeZone, type = String | TimeZone, defaultValue = <utc>) public class Converter.LocalDateTimeConverter extends AbstractConverter<LocalDateTime> implements ConfigurableConverter<LocalDateTime>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverter.LocalDateTimeConverter.Default
-
Field Summary
Fields Modifier and Type Field Description private final Stringformatprivate final Localelocaleprivate final TimeZonetimeZoneprivate final Map<String, Object>configParamsprivate final Class<LocalDateTime>targetType
-
Constructor Summary
Constructors Constructor Description Converter.LocalDateTimeConverter(Map<String, Object> configParams)
-
Method Summary
Modifier and Type Method Description final StringgetFormat()final LocalegetLocale()final TimeZonegetTimeZone()final Map<String, Object>getConfigParams()配置参数。 Class<LocalDateTime>getTargetType()目标类型。 Converter.LocalDateTimeConverterconfigure(Map<String, Object> configParams)根据指定的配置复制当前对象,返回一个新对象。 LocalDateTimeconvert(Object value)将指定的对象转化为另一个类型。如果转化失败,则抛出异常。 -
Methods inherited from class icu.windea.breezeframework.core.component.Converter.LocalDateTimeConverter
equals, hashCode, toString -
Methods inherited from class icu.windea.breezeframework.core.component.AbstractConverter
convertOrNull -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTimeZone
final TimeZone getTimeZone()
-
getConfigParams
final Map<String, Object> getConfigParams()
配置参数。
-
getTargetType
Class<LocalDateTime> getTargetType()
目标类型。
-
configure
Converter.LocalDateTimeConverter configure(Map<String, Object> configParams)
根据指定的配置复制当前对象,返回一个新对象。
-
convert
LocalDateTime convert(Object value)
将指定的对象转化为另一个类型。如果转化失败,则抛出异常。
-
-
-
-