java.lang.Object
java.lang.Number
io.jenetics.jpx.Speed
- All Implemented Interfaces:
Serializable,Comparable<Speed>
Represents the GPS speed value in m/s.
- Since:
- 1.0
- Version:
- 1.2
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintdoubleReturn the GPS speed value in m/s.booleanfloatinthashCode()intintValue()longstatic Speedof(double speed, Speed.Unit unit) Create a new GPSSpeedobject.doubleto(Speed.Unit unit) Return the GPS speed value in the desired unit.toString()Methods inherited from class java.lang.Number
byteValue, shortValue
-
Method Details
-
doubleValue
Return the GPS speed value in m/s.- Specified by:
doubleValuein classNumber- Returns:
- the GPS speed value in m/s
-
to
Return the GPS speed value in the desired unit.- Parameters:
unit- the speed unit- Returns:
- the GPS speed value in the desired unit
- Throws:
NullPointerException- if the given speedunitisnull
-
intValue
-
longValue
-
floatValue
- Specified by:
floatValuein classNumber
-
compareTo
- Specified by:
compareToin interfaceComparable<Speed>
-
hashCode
-
equals
-
toString
-
of
Create a new GPSSpeedobject.- Parameters:
speed- the GPS speed valueunit- the speed unit- Returns:
- a new GPS
Speedobject - Throws:
NullPointerException- if the given speedunitisnull
-