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 mass dimension. 009 * 010 * <p>This is the base type for units of mass dimension. It is also used to specify the dimension 011 * for {@link Measure}: <code>Measure<Mass></code>. 012 * 013 * <p>Actual units (such as {@link Units#Grams} and {@link Units#Pounds}) can be found in the {@link 014 * Units} class. 015 */ 016public class Mass extends Unit<Mass> { 017 /** Creates a new unit with the given name and multiplier to the base unit. */ 018 Mass(double baseUnitEquivalent, String name, String symbol) { 019 super(Mass.class, baseUnitEquivalent, name, symbol); 020 } 021 022 Mass(UnaryFunction toBaseConverter, UnaryFunction fromBaseConverter, String name, String symbol) { 023 super(Mass.class, toBaseConverter, fromBaseConverter, name, symbol); 024 } 025}