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 005// THIS FILE WAS AUTO-GENERATED BY ./wpiunits/generate_units.py. DO NOT MODIFY 006 007package edu.wpi.first.units.measure; 008 009import static edu.wpi.first.units.Units.*; 010import edu.wpi.first.units.*; 011import edu.wpi.first.units.mutable.MutableMeasureBase; 012 013@SuppressWarnings({"unchecked", "cast", "checkstyle", "PMD"}) 014public final class MutPer<Dividend extends Unit, Divisor extends Unit> 015 extends MutableMeasureBase<PerUnit<Dividend, Divisor>, Per<Dividend, Divisor>, MutPer<Dividend, Divisor>> 016 implements Per<Dividend, Divisor> { 017 public MutPer(double magnitude, double baseUnitMagnitude, PerUnit<Dividend, Divisor> unit) { 018 super(magnitude, baseUnitMagnitude, unit); 019 } 020 021 @Override 022 public Per<Dividend, Divisor> copy() { 023 return new ImmutablePer<Dividend, Divisor>(magnitude(), baseUnitMagnitude(), unit()); 024 } 025}