blob: 5a36582e4d534611f0001b706c5524cad0efa7ff [file] [log] [blame]
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -08001/*----------------------------------------------------------------------------*/
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
8package edu.wpi.first.wpiutil.math.numbers;
9
10import edu.wpi.first.wpiutil.math.Nat;
11import edu.wpi.first.wpiutil.math.Num;
12
13/**
14 * A class representing the number ${num}.
15*/
16public 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}