Module org.tquadrat.foundation.util
Class TimeUnitStringConverter
java.lang.Object
org.tquadrat.foundation.lang.internal.DefaultEnumStringConverter<TimeUnit>
org.tquadrat.foundation.util.stringconverter.EnumStringConverter<TimeUnit>
org.tquadrat.foundation.util.stringconverter.TimeUnitStringConverter
- All Implemented Interfaces:
Serializable
,StringConverter<TimeUnit>
@ClassVersion(sourceVersion="$Id: TimeUnitStringConverter.java 1060 2023-09-24 19:21:40Z tquadrat $")
@API(status=STABLE,
since="0.0.6")
public final class TimeUnitStringConverter
extends EnumStringConverter<TimeUnit>
The implementation of
EnumStringConverter
for
TimeUnit
values.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: TimeUnitStringConverter.java 1060 2023-09-24 19:21:40Z tquadrat $
- Since:
- 0.0.6
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.util.stringconverter.TimeUnitStringConverter"
-
Field Summary
FieldsFields inherited from class org.tquadrat.foundation.lang.internal.DefaultEnumStringConverter
MSG_UnknownValue
Fields inherited from interface org.tquadrat.foundation.lang.StringConverter
METHOD_NAME_GetSubjectClass, METHOD_NAME_Provider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final TimeUnitStringConverter
provider()
This method is used by theServiceLoader
to obtain the instance for thisStringConverter
implementation.Methods inherited from class org.tquadrat.foundation.lang.internal.DefaultEnumStringConverter
fromString, getSubjectClass, toString
-
Field Details
-
INSTANCE
An instance of this class.
-
-
Constructor Details
-
TimeUnitStringConverter
public TimeUnitStringConverter()Creates a newTimeUnitStringConverter
instance.
-
-
Method Details
-
provider
This method is used by theServiceLoader
to obtain the instance for thisStringConverter
implementation.- Returns:
- The instance for this
StringConverter
implementation.
-