Enum FixedDateFormat.FixedTimeZoneFormat
- java.lang.Object
-
- java.lang.Enum<FixedDateFormat.FixedTimeZoneFormat>
-
- org.apache.logging.log4j.core.util.datetime.FixedDateFormat.FixedTimeZoneFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FixedDateFormat.FixedTimeZoneFormat>
- Enclosing class:
- FixedDateFormat
public static enum FixedDateFormat.FixedTimeZoneFormat extends java.lang.Enum<FixedDateFormat.FixedTimeZoneFormat>
Fixed time zone formats. The enum names are symbols from Java's DateTimeFormatter.- See Also:
- DateTimeFormatter
-
-
Field Summary
Fields Modifier and Type Field Description private int
length
private char
timeSeparatorChar
private int
timeSeparatorCharLen
private boolean
useMinutes
-
Constructor Summary
Constructors Modifier Constructor Description private
FixedTimeZoneFormat()
private
FixedTimeZoneFormat(char timeSeparatorChar, boolean minutes, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength()
static FixedDateFormat.FixedTimeZoneFormat
valueOf(java.lang.String name)
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 Detail
-
HH
public static final FixedDateFormat.FixedTimeZoneFormat HH
Offset like-07
.
-
HHMM
public static final FixedDateFormat.FixedTimeZoneFormat HHMM
Offset like-0700
.
-
HHCMM
public static final FixedDateFormat.FixedTimeZoneFormat HHCMM
Offset like-07:00
.
-
-
Method Detail
-
values
public static FixedDateFormat.FixedTimeZoneFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FixedDateFormat.FixedTimeZoneFormat c : FixedDateFormat.FixedTimeZoneFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FixedDateFormat.FixedTimeZoneFormat valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getLength
public int getLength()
-
write
private int write(int offset, char[] buffer, int pos)
-
-