mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
35 lines
1021 B
Java
35 lines
1021 B
Java
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
|
||
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||
|
|
/* the project. */
|
||
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
|
||
|
|
package edu.wpi.first.wpiutil.math.numbers;
|
||
|
|
|
||
|
|
import edu.wpi.first.wpiutil.math.Nat;
|
||
|
|
import edu.wpi.first.wpiutil.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}();
|
||
|
|
}
|