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 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
FieldsModifier and TypeFieldDescriptionprivate final Localeprivate final Stringprivate final ChronoUnitprivate final TimeZoneFields inherited from interface org.apache.logging.log4j.core.util.internal.instant.InstantPatternFormatter
LEGACY_FORMATTERS_ENABLED -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFormatter(String pattern, Locale locale, TimeZone timeZone, ChronoUnit precision) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.internal.instant.InstantFormatter
format, formatTo
-
Field Details
-
pattern
-
locale
-
timeZone
-
precision
-
-
Constructor Details
-
AbstractFormatter
AbstractFormatter(String pattern, Locale locale, TimeZone timeZone, ChronoUnit precision)
-
-
Method Details
-
getPrecision
- Specified by:
getPrecisionin interfaceInstantFormatter- Returns:
- the time precision of the formatted output
-
getPattern
- Specified by:
getPatternin interfaceInstantPatternFormatter
-
getLocale
- Specified by:
getLocalein interfaceInstantPatternFormatter
-
getTimeZone
- Specified by:
getTimeZonein interfaceInstantPatternFormatter
-