Energy constructor

Energy(
  1. double energy,
  2. EnergyUnit unit
)

Implementation

Energy(double energy, EnergyUnit unit):
      value = EnergyValue.from(unit, energy);