Package org.mitre.synthea.engine
Class Components.RangeWithUnit<R extends Number>
java.lang.Object
org.mitre.synthea.engine.Components.Range<R>
org.mitre.synthea.engine.Components.RangeWithUnit<R>
- Type Parameters:
R- Type of range
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Components
Variant of the Range class, where a unit is required.
Defining this in a separate class makes it easier to define
where units are and are not required.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionUnit for the range (e.g., "years" if the range represents an amount of time).Fields inherited from class org.mitre.synthea.engine.Components.Range
decimals, high, low -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
unit
Unit for the range (e.g., "years" if the range represents an amount of time).
-
-
Constructor Details
-
RangeWithUnit
public RangeWithUnit()
-