Package io.jenetics.jpx
Class DGPSStation
- java.lang.Object
-
- java.lang.Number
-
- io.jenetics.jpx.DGPSStation
-
- All Implemented Interfaces:
Serializable
,Comparable<DGPSStation>
public final class DGPSStation extends Number implements Comparable<DGPSStation>, Serializable
Represents a differential GPS station. This object only holds int values in the range of[0..1023]
.- Since:
- 1.0
- Version:
- 2.0
- Author:
- Franz Wilhelmstötter
- See Also:
- Value object, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DGPSStation other)
double
doubleValue()
boolean
equals(Object obj)
float
floatValue()
int
hashCode()
int
intValue()
Return the differential GPS station number.long
longValue()
static DGPSStation
of(int value)
Create a newDGPSStation
object.String
toString()
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Field Detail
-
MIN_VALUE
public static final int MIN_VALUE
A constant holding the maximum value aDGPSStation
value can have, 0 inclusively.- Since:
- 2.0
- See Also:
- Constant Field Values
-
MAX_VALUE
public static final int MAX_VALUE
A constant holding the maximum value aDGPSStation
value can have, 1023 inclusively.- Since:
- 2.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
intValue
public int intValue()
Return the differential GPS station number.
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
compareTo
public int compareTo(DGPSStation other)
- Specified by:
compareTo
in interfaceComparable<DGPSStation>
-
of
public static DGPSStation of(int value)
Create a newDGPSStation
object.- Parameters:
value
- the differential GPS station number- Returns:
- a new
DGPSStation
object - Throws:
IllegalArgumentException
- if the given station number is not in the range of[0..1023]
-
-