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

@ClassVersion(sourceVersion="$Id: SpeedValue.java 1072 2023-09-30 20:44:38Z tquadrat $") @API(status=STABLE, since="0.1.0") public final class SpeedValue extends ValueBase<Speed,SpeedValue>
A value class for speeds.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: SpeedValue.java 1072 2023-09-30 20:44:38Z tquadrat $
Since:
0.1.0
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.value.SpeedValue"

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

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

    • SpeedValue

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

      public SpeedValue(Speed dimension, String value) throws NumberFormatException
      Creates a new SpeedValue 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.
    • SpeedValue

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

      public SpeedValue(Speed dimension, LengthValue distance, TimeValue time)
      Creates a new SpeedValue instance.
      Parameters:
      dimension - The dimension.
      distance - The travelled distance.
      time - The time for travelling the given distance.
  • Method Details