         )
     }
 
+    /**
+     Returns joule `[J]` area unit.
+     
+     - author: Michal Konturek
+     */
     public static var joule: EnergyUnit {
         return EnergyUnit(
             name: "joule",

        )
    }

    public static var megajoule: EnergyUnit {
        return EnergyUnit(
            name: "megajoule",


extension NSNumber {

    /**
     Returns instance converted as gigajoule quantity.
     
     - author: Michal Konturek
     */
    public func gigajoule() -> Quantity {
        return Quantity(amount: self, unit: EnergyUnit.gigajoule)
    }

    /**
     Returns instance converted as megajoule quantity.
     
     - author: Michal Konturek
     */
    public func megajoule() -> Quantity {
        return Quantity(amount: self, unit: EnergyUnit.megajoule)
    }

    /**
     Returns instance converted as kilojoule quantity.
     
     - author: Michal Konturek
     */
    public func kilojoule() -> Quantity {
        return Quantity(amount: self, unit: EnergyUnit.kilojoule)
    }

    /**
     Returns instance converted as joule quantity.
     
     - author: Michal Konturek
     */
    public func joule() -> Quantity {
        return Quantity(amount: self, unit: EnergyUnit.joule)
    }

    /**
     Returns instance converted as kilocalorie quantity.
     
     - author: Michal Konturek
     */
    public func kilocalorie() -> Quantity {
        return Quantity(amount: self, unit: EnergyUnit.kilocalorie)
    }

    /**
     Returns instance converted as calorie quantity.
     
     - author: Michal Konturek
     */
    public func calorie() -> Quantity {
        return Quantity(amount: self, unit: EnergyUnit.calorie)
    }
