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

public static class Components.RangeWithUnit<R extends Number> extends Components.Range<R>
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 Details

    • unit

      public String unit
      Unit for the range (e.g., "years" if the range represents an amount of time).
  • Constructor Details

    • RangeWithUnit

      public RangeWithUnit()