org.ka2ddo.yaac.osm
Class Speed
java.lang.Object
org.ka2ddo.yaac.osm.Speed
public class Speed
- extends java.lang.Object
This class defines a compound object containing a speed value and the units of speed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Speed
public Speed(java.lang.String value)
Speed
public Speed(int speed,
DistanceUnit unit)
getSpeed
public int getSpeed()
getUnit
public DistanceUnit getUnit()
toString
public java.lang.String toString()
- Returns a string representation of the object.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of the object.