Package io.jenetics.jpx
Enum Fix
- java.lang.Object
-
- java.lang.Enum<Fix>
-
- io.jenetics.jpx.Fix
-
- All Implemented Interfaces:
Serializable
,Comparable<Fix>
public enum Fix extends Enum<Fix>
Type of GPS fix.none
means GPS had no fix. To signify "the fix info is unknown, leave outFix
entirely.pps
= military signal used.- Since:
- 1.0
- Version:
- 1.2
- Author:
- Franz Wilhelmstötter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Return the string representation of the GPSFix
.static Optional<Fix>
ofName(String name)
Return theFix
constant for the given fixvalue
.static Fix
valueOf(String name)
Returns the enum constant of this type with the specified name.static Fix[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Fix[] 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 (Fix c : Fix.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Fix valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
Return the string representation of the GPSFix
.none
,2d
.3d
,dgps
orpps
.- Returns:
- the string representation of the GPS
Fix
-
-