Package org.opencabstandard.provider
Enum Class HOSContract.Clock.ValueType
java.lang.Object
java.lang.Enum<HOSContract.Clock.ValueType>
org.opencabstandard.provider.HOSContract.Clock.ValueType
- All Implemented Interfaces:
Serializable
,Comparable<HOSContract.Clock.ValueType>
,Constable
- Enclosing class:
- HOSContract.Clock
Allowed types for valueType field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the value field will contain a date in RFC3339 format that will be shown as a clock counting down to zero.Indicates that the value field will contain a date in RFC3339 format that will be shown as a clock counting up from the provided date.Indicates that the value field will contain a date in RFC3339 format.The value field with contain a simple string. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static HOSContract.Clock.ValueType
Returns the enum constant of this class with the specified name.static HOSContract.Clock.ValueType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
The value field with contain a simple string. It can be informational information such as the driver username or something like "Adverse Weather Conditions". -
DATE
Indicates that the value field will contain a date in RFC3339 format. The date will appear formatted as "MM/dd/yyyy". An example for this type of clock could be the date of next required truck service. -
COUNTUP
Indicates that the value field will contain a date in RFC3339 format that will be shown as a clock counting up from the provided date. An example for this type of clock could be the number of hours since last rest. -
COUNTDOWN
Indicates that the value field will contain a date in RFC3339 format that will be shown as a clock counting down to zero. The counter will not go below zero. An example for this type of clock could be the remaining available drive time.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<HOSContract.Clock.ValueType>
-