Class InstantPatternDynamicFormatter.AbstractFormatter
- java.lang.Object
-
- org.apache.logging.log4j.core.util.internal.instant.InstantPatternDynamicFormatter.AbstractFormatter
-
- All Implemented Interfaces:
InstantFormatter,InstantPatternFormatter
- Enclosing class:
- InstantPatternDynamicFormatter
private abstract static class InstantPatternDynamicFormatter.AbstractFormatter extends java.lang.Object implements InstantPatternFormatter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.util.internal.instant.InstantPatternFormatter
InstantPatternFormatter.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Localelocaleprivate java.lang.Stringpatternprivate java.time.temporal.ChronoUnitprecisionprivate java.util.TimeZonetimeZone-
Fields inherited from interface org.apache.logging.log4j.core.util.internal.instant.InstantPatternFormatter
LEGACY_FORMATTERS_ENABLED
-
-
Constructor Summary
Constructors Constructor Description AbstractFormatter(java.lang.String pattern, java.util.Locale locale, java.util.TimeZone timeZone, java.time.temporal.ChronoUnit precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.LocalegetLocale()java.lang.StringgetPattern()java.time.temporal.ChronoUnitgetPrecision()java.util.TimeZonegetTimeZone()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.internal.instant.InstantFormatter
format, formatTo
-
-
-
-
Method Detail
-
getPrecision
public java.time.temporal.ChronoUnit getPrecision()
- Specified by:
getPrecisionin interfaceInstantFormatter- Returns:
- the time precision of the formatted output
-
getPattern
public java.lang.String getPattern()
- Specified by:
getPatternin interfaceInstantPatternFormatter
-
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocalein interfaceInstantPatternFormatter
-
getTimeZone
public java.util.TimeZone getTimeZone()
- Specified by:
getTimeZonein interfaceInstantPatternFormatter
-
-