Enum Class MilitaryZone
- All Implemented Interfaces:
Serializable
,Comparable<MilitaryZone>
,java.lang.constant.Constable
,TZID
Represents a military timezone (used by US) where the globe is divided into fixed offset zones using the NATO phonetic alphabet.
- Since:
- 2.2
- Author:
- Meno Hochschild
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOffset UTC+01:00Offset UTC+02:00Offset UTC+03:00Offset UTC+04:00Offset UTC+05:00Offset UTC+06:00Offset UTC+07:00Offset UTC+08:00Offset UTC+09:00Offset UTC+10:00Offset UTC+11:00Offset UTC+12:00Offset UTC-01:00Offset UTC-02:00Offset UTC-03:00Offset UTC-04:00Offset UTC-05:00Offset UTC-06:00Offset UTC-07:00Offset UTC-08:00Offset UTC-09:00Offset UTC-10:00Offset UTC-11:00Offset UTC-12:00Equivalent toZonalOffset.UTC
. -
Method Summary
Modifier and TypeMethodDescriptionYields a canonical form of this timezone identifier, for example "MILITARY~UTC+01:00".Yields the associated timezone offset.Yields the first letter of the full name (for example "A").toString()
Yields the full name (for example "Alpha").static MilitaryZone
Returns the enum constant of this class with the specified name.static MilitaryZone[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
ALPHA
Offset UTC+01:00
-
BRAVO
Offset UTC+02:00
-
CHARLIE
Offset UTC+03:00
-
DELTA
Offset UTC+04:00
-
ECHO
Offset UTC+05:00
-
FOXTROT
Offset UTC+06:00
-
GOLF
Offset UTC+07:00
-
HOTEL
Offset UTC+08:00
-
INDIA
Offset UTC+09:00
-
KILO
Offset UTC+10:00
-
LIMA
Offset UTC+11:00
-
MIKE
Offset UTC+12:00
-
NOVEMBER
Offset UTC-01:00
-
OSCAR
Offset UTC-02:00
-
PAPA
Offset UTC-03:00
-
QUEBEC
Offset UTC-04:00
-
ROMEO
Offset UTC-05:00
-
SIERRA
Offset UTC-06:00
-
TANGO
Offset UTC-07:00
-
UNIFORM
Offset UTC-08:00
-
VICTOR
Offset UTC-09:00
-
WHISKEY
Offset UTC-10:00
-
X_RAY
Offset UTC-11:00
-
YANKEE
Offset UTC-12:00
-
ZULU
Equivalent to
ZonalOffset.UTC
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getOffset
Yields the associated timezone offset.
- Returns:
- ZonalOffset in full hours
- Since:
- 2.2
-
getSymbol
Yields the first letter of the full name (for example "A").
- Returns:
- String
- Since:
- 2.2
-
toString
Yields the full name (for example "Alpha").
- Overrides:
toString
in classEnum<MilitaryZone>
- Returns:
- String
-
canonical
Yields a canonical form of this timezone identifier, for example "MILITARY~UTC+01:00".
-