Class MassValue
java.lang.Object
org.tquadrat.foundation.lang.value.ValueBase<Mass, MassValue>
org.tquadrat.foundation.value.MassValue
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<DimensionedValue<Mass>>, Formattable, DimensionedValue<Mass>
@ClassVersion(sourceVersion="$Id: MassValue.java 1195 2026-04-15 21:33:40Z tquadrat $")
@API(status=STABLE,
since="0.1.0")
public final class MassValue
extends ValueBase<Mass, MassValue>
A value class for weights and masses.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: MassValue.java 1195 2026-04-15 21:33:40Z tquadrat $
- Since:
- 0.1.0
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.value.MassValue"
-
Field Summary
Fields inherited from class ValueBase
DEFAULT_VALIDATORFields inherited from interface DimensionedValue
MATH_CONTEXT -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MassValue
Creates a newMassValueinstance.- Parameters:
dimension- The dimension.value- The value.
-
MassValue
Creates a newMassValueinstance.- Parameters:
dimension- The dimension.value- The value; it must be possible to parse the given String into aBigDecimal.- Throws:
NumberFormatException- The provided value cannot be converted into aBigDecimal.
-
MassValue
-
-
Method Details
-
clone
-
