Class SpeedUnit

java.lang.Object
com.azure.core.util.ExpandableStringEnum<SpeedUnit>
com.azure.maps.traffic.models.SpeedUnit

public final class SpeedUnit extends com.azure.core.util.ExpandableStringEnum<SpeedUnit>
Defines values for SpeedUnit.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SpeedUnit
    Static value KMPH for SpeedUnit.
    static final SpeedUnit
    Static value MPH for SpeedUnit.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static SpeedUnit
    Creates or finds a SpeedUnit from its string representation.
    Gets known SpeedUnit values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • KMPH

      public static final SpeedUnit KMPH
      Static value KMPH for SpeedUnit.
    • MPH

      public static final SpeedUnit MPH
      Static value MPH for SpeedUnit.
  • Constructor Details

    • SpeedUnit

      public SpeedUnit()
  • Method Details

    • fromString

      public static SpeedUnit fromString(String name)
      Creates or finds a SpeedUnit from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding SpeedUnit.
    • values

      public static Collection<SpeedUnit> values()
      Gets known SpeedUnit values.
      Returns:
      known SpeedUnit values.