mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
29 lines
803 B
Django/Jinja
29 lines
803 B
Django/Jinja
// 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 ./wpimath/generate_numbers.py. DO NOT MODIFY
|
|
|
|
package edu.wpi.first.math.numbers;
|
|
|
|
import edu.wpi.first.math.Nat;
|
|
import edu.wpi.first.math.Num;
|
|
|
|
/** A class representing the number {{ num }}. */
|
|
public final class N{{ num }} extends Num implements Nat<N{{ num }}> {
|
|
private N{{ num }}() {}
|
|
|
|
/**
|
|
* The integer this class represents.
|
|
*
|
|
* @return The literal number {{ num }}.
|
|
*/
|
|
@Override
|
|
public int getNum() {
|
|
return {{ num }};
|
|
}
|
|
|
|
/** The singleton instance of this class. */
|
|
public static final N{{ num }} instance = new N{{ num }}();
|
|
}
|