Package 

Class SpeedLimit

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class SpeedLimit
     implements Parcelable
                        

    Data model representing speed limit.

    Instances are typically immutable after construction. Use builders or factory methods where provided.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class SpeedLimit.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer unit
      private final Integer value
    • Constructor Summary

      Constructors 
      Constructor Description
      SpeedLimit(Integer unit, Integer value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getUnit() The speed unit: SpeedUnit.KPH, SpeedUnit.MPH
      final Integer getValue() Speed value -1 INVALID_SPEED_LIMIT indicates speed limit does not exist on road.
      final Double toMetersPerSecond() Performs to meters per second.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait