All Implemented Interfaces:
Serializable, Cloneable, Comparable<DimensionedValue<Time>>, Formattable, DimensionedValue<Time>

@ClassVersion(sourceVersion="$Id: TimeValue.java 1073 2023-10-01 11:08:51Z tquadrat $") @API(status=STABLE, since="0.1.0") public final class TimeValue extends ValueBase<Time,TimeValue>
A value class for times, what means periods of time in this case, opposite to the time displayed on the wall-clock.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: TimeValue.java 1073 2023-10-01 11:08:51Z tquadrat $
Since:
0.1.0
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.value.TimeValue"

UML Diagram for "org.tquadrat.foundation.value.TimeValue"

UML Diagram for "org.tquadrat.foundation.value.TimeValue"
  • Constructor Details

    • TimeValue

      public TimeValue(Time dimension, BigDecimal value)
      Creates a new TimeValue instance.
      Parameters:
      dimension - The dimension.
      value - The value.
    • TimeValue

      public TimeValue(Time dimension, String value) throws NumberFormatException
      Creates a new TimeValue instance.
      Parameters:
      dimension - The dimension.
      value - The value; it must be possible to parse the given String into a BigDecimal.
      Throws:
      NumberFormatException - The provided value cannot be converted into a BigDecimal.
    • TimeValue

      public TimeValue(Time dimension, N value)
      Creates a new TimeValue instance.
      Type Parameters:
      N - The type of value.
      Parameters:
      dimension - The dimension.
      value - The value.
    • TimeValue

      public TimeValue(Time dimension, Duration value)
      Creates a new TimeValue instance.
      Parameters:
      dimension - The dimension.
      value - The value.
    • TimeValue

      public TimeValue(Time dimension, Period value)
      Creates a new TimeValue instance.
      Parameters:
      dimension - The dimension.
      value - The value.
  • Method Details