Enum FixedDateFormat.FixedTimeZoneFormat
java.lang.Object
java.lang.Enum<FixedDateFormat.FixedTimeZoneFormat>
org.apache.logging.log4j.core.util.datetime.FixedDateFormat.FixedTimeZoneFormat
- All Implemented Interfaces:
Serializable
,Comparable<FixedDateFormat.FixedTimeZoneFormat>
,java.lang.constant.Constable
- Enclosing class:
FixedDateFormat
public static enum FixedDateFormat.FixedTimeZoneFormat
extends Enum<FixedDateFormat.FixedTimeZoneFormat>
Fixed time zone formats. The enum names are symbols from Java's DateTimeFormatter.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final char
private final int
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
FixedTimeZoneFormat
(char timeSeparatorChar, boolean minutes, int length) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the enum constant of this type with the specified name.static FixedDateFormat.FixedTimeZoneFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.private int
write
(int offset, char[] buffer, int pos)
-
Enum Constant Details
-
HH
Offset like-07
. -
HHMM
Offset like-0700
. -
HHCMM
Offset like-07:00
.
-
-
Field Details
-
timeSeparatorChar
private final char timeSeparatorChar -
timeSeparatorCharLen
private final int timeSeparatorCharLen -
useMinutes
private final boolean useMinutes -
length
private final int length
-
-
Constructor Details
-
FixedTimeZoneFormat
private FixedTimeZoneFormat() -
FixedTimeZoneFormat
private FixedTimeZoneFormat(char timeSeparatorChar, boolean minutes, int length)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLength
public int getLength() -
write
private int write(int offset, char[] buffer, int pos)
-