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

@ClassVersion(sourceVersion="$Id: AreaValue.java 1073 2023-10-01 11:08:51Z tquadrat $") @API(status=STABLE, since="0.1.0") public final class AreaValue extends ValueBase<Area,AreaValue>
A value class for areas.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: AreaValue.java 1073 2023-10-01 11:08:51Z tquadrat $
Since:
0.1.0
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.value.AreaValue"

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

UML Diagram for "org.tquadrat.foundation.value.AreaValue"
  • Field Details

  • Constructor Details

    • AreaValue

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

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

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

      public AreaValue(Area dimension, LengthValue length, LengthValue width)

      Creates a new AreaValue instance. An area can be determined by multiplication of length and width.

      Parameters:
      dimension - The dimension.
      length - The length.
      width - The width.
  • Method Details