mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
||
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
||
|
|
// the WPILib BSD license file in the root directory of this project.
|
||
|
|
|
||
|
|
// THIS FILE WAS AUTO-GENERATED BY ./wpiunits/generate_units.py. DO NOT MODIFY
|
||
|
|
|
||
|
|
package edu.wpi.first.units.measure;
|
||
|
|
|
||
|
|
import static edu.wpi.first.units.Units.*;
|
||
|
|
import edu.wpi.first.units.*;
|
||
|
|
import edu.wpi.first.units.mutable.MutableMeasureBase;
|
||
|
|
|
||
|
|
@SuppressWarnings({"unchecked", "cast", "checkstyle", "PMD"})
|
||
|
|
public final class Mut{{ helpers['type_decl'](name) }}
|
||
|
|
extends MutableMeasureBase<{{ helpers['mtou'](name) }}, {{ helpers['type_usage'](name) }}, Mut{{ helpers['type_usage'](name) }}>
|
||
|
|
implements {{ helpers['type_usage'](name) }} {
|
||
|
|
public Mut{{ name }}(double magnitude, double baseUnitMagnitude, {{ helpers['mtou'](name) }} unit) {
|
||
|
|
super(magnitude, baseUnitMagnitude, unit);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public {{ helpers['type_usage'](name) }} copy() {
|
||
|
|
return new Immutable{{ helpers['type_usage'](name) }}(magnitude(), baseUnitMagnitude(), unit());
|
||
|
|
}
|
||
|
|
}
|