Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 1 | // Copyright (c) FIRST and other WPILib contributors. |
| 2 | // Open Source Software; you can modify and/or share it under the terms of |
| 3 | // the WPILib BSD license file in the root directory of this project. |
| 4 | |
| 5 | package edu.wpi.first.math.numbers; |
| 6 | |
| 7 | import edu.wpi.first.math.Nat; |
| 8 | import edu.wpi.first.math.Num; |
| 9 | |
| 10 | /** |
| 11 | * A class representing the number {{ num }}. |
| 12 | */ |
| 13 | public final class N{{ num }} extends Num implements Nat<N{{ num }}> { |
| 14 | private N{{ num }}() { |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * The integer this class represents. |
| 19 | * |
| 20 | * @return The literal number {{ num }}. |
| 21 | */ |
| 22 | @Override |
| 23 | public int getNum() { |
| 24 | return {{ num }}; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * The singleton instance of this class. |
| 29 | */ |
| 30 | public static final N{{ num }} instance = new N{{ num }}(); |
| 31 | } |