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

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

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

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

    • PowerValue

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

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

      public PowerValue(Power dimension, N value)
      Creates a new PowerValue instance.
      Type Parameters:
      N - The type of value.
      Parameters:
      dimension - The dimension.
      value - The value.
  • Method Details