java.lang.Object
org.tquadrat.foundation.value.api.ValueBase<Length,LengthValue>
 
org.tquadrat.foundation.value.LengthValue
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<DimensionedValue<Length>>,- Formattable,- DimensionedValue<Length>
@ClassVersion(sourceVersion="$Id: LengthValue.java 1072 2023-09-30 20:44:38Z tquadrat $")
@API(status=STABLE,
     since="0.1.0")
public final class LengthValue
extends ValueBase<Length,LengthValue> 
A value class for lengths.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: LengthValue.java 1072 2023-09-30 20:44:38Z tquadrat $
- Since:
- 0.1.0
- See Also:
- UML Diagram
- 
    
         UML Diagram for "org.tquadrat.foundation.value.LengthValue" 
- 
Field SummaryFields inherited from class org.tquadrat.foundation.value.api.ValueBaseDEFAULT_VALIDATORFields inherited from interface org.tquadrat.foundation.value.api.DimensionedValueMATH_CONTEXT
- 
Constructor SummaryConstructorsConstructorDescriptionLengthValue(Length dimension, String value) Creates a newLengthValueinstance.LengthValue(Length dimension, BigDecimal value) Creates a newLengthValueinstance.LengthValue(Length dimension, N value) Creates a newLengthValueinstance.
- 
Method SummaryMethods inherited from class org.tquadrat.foundation.value.api.ValueBasebaseValue, copy, copy, equals, getUnit, hashCode, setUnit, toString
- 
Constructor Details- 
LengthValueCreates a newLengthValueinstance.- Parameters:
- dimension- The dimension.
- value- The value.
 
- 
LengthValueCreates a newLengthValueinstance.- 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.
 
- 
LengthValueCreates a newLengthValueinstance.- Type Parameters:
- N- The type of- value.
- Parameters:
- dimension- The dimension.
- value- The value.
 
 
- 
- 
Method Details- 
cloneCreates a new copy of this value.- Specified by:
- clonein interface- DimensionedValue<Length>
- Overrides:
- clonein class- ValueBase<Length,- LengthValue> 
- Returns:
- The copy.
 
 
- 
