Package org.tquadrat.foundation.value
Class Time.TemporalUnitImpl
java.lang.Object
org.tquadrat.foundation.value.Time.TemporalUnitImpl
- All Implemented Interfaces:
TemporalUnit
- Enclosing class:
Time
@ClassVersion(sourceVersion="$Id: Time.java 1073 2023-10-01 11:08:51Z tquadrat $")
@API(status=STABLE,
since="0.1.0")
private class Time.TemporalUnitImpl
extends Object
implements TemporalUnit
An implementation of
TemporalUnit
,
based on the settings for the Time
instance.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: Time.java 1073 2023-10-01 11:08:51Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.value.Time.TemporalUnitImpl"
-
Field Details
-
m_Duration
The duration for this temporal unit. -
m_Name
The name of this temporal unit.
-
-
Constructor Details
-
TemporalUnitImpl
Creates a newTemporalUnitImpl
instance.- Parameters:
name
- The name of this temporal unit.
-
-
Method Details
-
addTo
- Specified by:
addTo
in interfaceTemporalUnit
-
between
- Specified by:
between
in interfaceTemporalUnit
-
getDuration
- Specified by:
getDuration
in interfaceTemporalUnit
-
isDurationEstimated
- Specified by:
isDurationEstimated
in interfaceTemporalUnit
-
isDateBased
- Specified by:
isDateBased
in interfaceTemporalUnit
-
isTimeBased
- Specified by:
isTimeBased
in interfaceTemporalUnit
-
toString
- Specified by:
toString
in interfaceTemporalUnit
- Overrides:
toString
in classObject
-