001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.units;
006
007/**
008 * Unit of energy dimension.
009 *
010 * <p>This is the base type for units of energy dimension. It is also used to specify the dimension
011 * for {@link Measure}: <code>Measure&lt;Energy&gt;</code>.
012 *
013 * <p>Actual units (such as {@link Units#Joules} and {@link Units#Kilojoules}) can be found in the
014 * {@link Units} class.
015 */
016public class Energy extends Unit<Energy> {
017  Energy(
018      Energy baseUnit,
019      UnaryFunction toBaseConverter,
020      UnaryFunction fromBaseConverter,
021      String name,
022      String symbol) {
023    super(baseUnit, toBaseConverter, fromBaseConverter, name, symbol);
024  }
025
026  Energy(Energy baseUnit, double baseUnitEquivalent, String name, String symbol) {
027    super(baseUnit, baseUnitEquivalent, name, symbol);
028  }
029}