Unit

enum Unit

Java class for unit

.

The following schema fragment specifies the expected content contained within this class.


<simpleType name="unit">
  <restriction base="{http://www.w3.org/2001/XMLSchema}string">
    <enumeration value="m"/>
    <enumeration value="km"/>
    <enumeration value="ft"/>
    <enumeration value="mile"/>
    <enumeration value="m/s"/>
    <enumeration value="mph"/>
    <enumeration value="km/h"/>
    <enumeration value="kg"/>
    <enumeration value="t"/>
    <enumeration value="%"/>
  </restriction>
</simpleType>

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun fromValue(v: String): Unit
Gets the enum associated to the value passed as parameter.
Link copied to clipboard
open fun value(): String
Gets the value associated to the enum constant.
Link copied to clipboard
open fun valueOf(name: String): Unit

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<Unit>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.