Enum Class Hemisphere
- All Implemented Interfaces:
Serializable
,Comparable<Hemisphere>
,Constable
An enumeration to store lat/long conversion factors for Hemispheres on the Earth.
- Since:
- 2.6
- Version:
- 11.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the latitude conversion factor.int
Returns the longitude conversion factror.static boolean
isDirection
(char c) Returns whether a character is a valid direction.static Hemisphere
Returns the enum constant of this class with the specified name.static Hemisphere[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
N
-
E
-
W
-
S
-
-
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
-
getLatitudeFactor
public int getLatitudeFactor()Returns the latitude conversion factor.- Returns:
- the conversion factor
-
getLongitudeFactor
public int getLongitudeFactor()Returns the longitude conversion factror.- Returns:
- the conversion factor
-
isDirection
public static boolean isDirection(char c) Returns whether a character is a valid direction.- Parameters:
c
- a char- Returns:
- TRUE if a valid direction, otherwise FALSE
-