Package org.opencabstandard.provider
Enum Class HOSContract.ClockData.ValueType
java.lang.Object
java.lang.Enum<HOSContract.ClockData.ValueType>
org.opencabstandard.provider.HOSContract.ClockData.ValueType
- All Implemented Interfaces:
Serializable
,Comparable<HOSContract.ClockData.ValueType>
,Constable
- Enclosing class:
- HOSContract.ClockData
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.You can also use a string for an ELD clock duration (like 4:32) if you want to ensure your own specific rounding and formatting logic is used. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns the enum constant of this class with the specified name.static HOSContract.ClockData.ValueType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
You can also use a string for an ELD clock duration (like 4:32) if you want to ensure your own specific rounding and formatting logic is used. In this case, providers SHOULD provide the actual duration in seconds using theHOSContract.ClockData.durationSeconds
property. Consumers MUST display thevalue
, but MAY useHOSContract.ClockData.durationSeconds
for business logic other than pure information display. -
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.ClockData.ValueType>
-