James Kuszmaul | 4f3ad3c | 2019-12-01 16:35:21 -0800 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) 2019 FIRST. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | package edu.wpi.first.wpiutil.math.numbers; |
| 9 | |
| 10 | import edu.wpi.first.wpiutil.math.Nat; |
| 11 | import edu.wpi.first.wpiutil.math.Num; |
| 12 | |
| 13 | /** |
| 14 | * A class representing the number ${num}. |
| 15 | */ |
| 16 | public final class N${num} extends Num implements Nat<N${num}> { |
| 17 | private N${num}() { |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * The integer this class represents. |
| 22 | * |
| 23 | * @return The literal number ${num}. |
| 24 | */ |
| 25 | @Override |
| 26 | public int getNum() { |
| 27 | return ${num}; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * The singleton instance of this class. |
| 32 | */ |
| 33 | public static final N${num} instance = new N${num}(); |
| 34 | } |