mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpimath] Commit generated files (#5986)
This commit is contained in:
131
wpimath/src/generated/main/java/edu/wpi/first/math/Nat.java
Normal file
131
wpimath/src/generated/main/java/edu/wpi/first/math/Nat.java
Normal file
@@ -0,0 +1,131 @@
|
||||
// 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;
|
||||
|
||||
// CHECKSTYLE.OFF: ImportOrder
|
||||
|
||||
import edu.wpi.first.math.numbers.N0;
|
||||
import edu.wpi.first.math.numbers.N1;
|
||||
import edu.wpi.first.math.numbers.N2;
|
||||
import edu.wpi.first.math.numbers.N3;
|
||||
import edu.wpi.first.math.numbers.N4;
|
||||
import edu.wpi.first.math.numbers.N5;
|
||||
import edu.wpi.first.math.numbers.N6;
|
||||
import edu.wpi.first.math.numbers.N7;
|
||||
import edu.wpi.first.math.numbers.N8;
|
||||
import edu.wpi.first.math.numbers.N9;
|
||||
import edu.wpi.first.math.numbers.N10;
|
||||
import edu.wpi.first.math.numbers.N11;
|
||||
import edu.wpi.first.math.numbers.N12;
|
||||
import edu.wpi.first.math.numbers.N13;
|
||||
import edu.wpi.first.math.numbers.N14;
|
||||
import edu.wpi.first.math.numbers.N15;
|
||||
import edu.wpi.first.math.numbers.N16;
|
||||
import edu.wpi.first.math.numbers.N17;
|
||||
import edu.wpi.first.math.numbers.N18;
|
||||
import edu.wpi.first.math.numbers.N19;
|
||||
import edu.wpi.first.math.numbers.N20;
|
||||
// CHECKSTYLE.ON
|
||||
|
||||
/**
|
||||
* A natural number expressed as a java class.
|
||||
* The counterpart to {@link Num} that should be used as a concrete value.
|
||||
*
|
||||
* @param <T> The {@link Num} this represents.
|
||||
*/
|
||||
public interface Nat<T extends Num> {
|
||||
/**
|
||||
* The number this interface represents.
|
||||
*
|
||||
* @return The number backing this value.
|
||||
*/
|
||||
int getNum();
|
||||
|
||||
static Nat<N0> N0() {
|
||||
return N0.instance;
|
||||
}
|
||||
|
||||
static Nat<N1> N1() {
|
||||
return N1.instance;
|
||||
}
|
||||
|
||||
static Nat<N2> N2() {
|
||||
return N2.instance;
|
||||
}
|
||||
|
||||
static Nat<N3> N3() {
|
||||
return N3.instance;
|
||||
}
|
||||
|
||||
static Nat<N4> N4() {
|
||||
return N4.instance;
|
||||
}
|
||||
|
||||
static Nat<N5> N5() {
|
||||
return N5.instance;
|
||||
}
|
||||
|
||||
static Nat<N6> N6() {
|
||||
return N6.instance;
|
||||
}
|
||||
|
||||
static Nat<N7> N7() {
|
||||
return N7.instance;
|
||||
}
|
||||
|
||||
static Nat<N8> N8() {
|
||||
return N8.instance;
|
||||
}
|
||||
|
||||
static Nat<N9> N9() {
|
||||
return N9.instance;
|
||||
}
|
||||
|
||||
static Nat<N10> N10() {
|
||||
return N10.instance;
|
||||
}
|
||||
|
||||
static Nat<N11> N11() {
|
||||
return N11.instance;
|
||||
}
|
||||
|
||||
static Nat<N12> N12() {
|
||||
return N12.instance;
|
||||
}
|
||||
|
||||
static Nat<N13> N13() {
|
||||
return N13.instance;
|
||||
}
|
||||
|
||||
static Nat<N14> N14() {
|
||||
return N14.instance;
|
||||
}
|
||||
|
||||
static Nat<N15> N15() {
|
||||
return N15.instance;
|
||||
}
|
||||
|
||||
static Nat<N16> N16() {
|
||||
return N16.instance;
|
||||
}
|
||||
|
||||
static Nat<N17> N17() {
|
||||
return N17.instance;
|
||||
}
|
||||
|
||||
static Nat<N18> N18() {
|
||||
return N18.instance;
|
||||
}
|
||||
|
||||
static Nat<N19> N19() {
|
||||
return N19.instance;
|
||||
}
|
||||
|
||||
static Nat<N20> N20() {
|
||||
return N20.instance;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 0. */
|
||||
public final class N0 extends Num implements Nat<N0> {
|
||||
private N0() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 0.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N0 instance = new N0();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 1. */
|
||||
public final class N1 extends Num implements Nat<N1> {
|
||||
private N1() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 1.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N1 instance = new N1();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 10. */
|
||||
public final class N10 extends Num implements Nat<N10> {
|
||||
private N10() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 10.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N10 instance = new N10();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 11. */
|
||||
public final class N11 extends Num implements Nat<N11> {
|
||||
private N11() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 11.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 11;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N11 instance = new N11();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 12. */
|
||||
public final class N12 extends Num implements Nat<N12> {
|
||||
private N12() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 12.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 12;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N12 instance = new N12();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 13. */
|
||||
public final class N13 extends Num implements Nat<N13> {
|
||||
private N13() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 13.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 13;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N13 instance = new N13();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 14. */
|
||||
public final class N14 extends Num implements Nat<N14> {
|
||||
private N14() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 14.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 14;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N14 instance = new N14();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 15. */
|
||||
public final class N15 extends Num implements Nat<N15> {
|
||||
private N15() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 15.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 15;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N15 instance = new N15();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 16. */
|
||||
public final class N16 extends Num implements Nat<N16> {
|
||||
private N16() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 16.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 16;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N16 instance = new N16();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 17. */
|
||||
public final class N17 extends Num implements Nat<N17> {
|
||||
private N17() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 17.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 17;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N17 instance = new N17();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 18. */
|
||||
public final class N18 extends Num implements Nat<N18> {
|
||||
private N18() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 18.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 18;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N18 instance = new N18();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 19. */
|
||||
public final class N19 extends Num implements Nat<N19> {
|
||||
private N19() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 19.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 19;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N19 instance = new N19();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 2. */
|
||||
public final class N2 extends Num implements Nat<N2> {
|
||||
private N2() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 2.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N2 instance = new N2();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 20. */
|
||||
public final class N20 extends Num implements Nat<N20> {
|
||||
private N20() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 20.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 20;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N20 instance = new N20();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 3. */
|
||||
public final class N3 extends Num implements Nat<N3> {
|
||||
private N3() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 3.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N3 instance = new N3();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 4. */
|
||||
public final class N4 extends Num implements Nat<N4> {
|
||||
private N4() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 4.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N4 instance = new N4();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 5. */
|
||||
public final class N5 extends Num implements Nat<N5> {
|
||||
private N5() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 5.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N5 instance = new N5();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 6. */
|
||||
public final class N6 extends Num implements Nat<N6> {
|
||||
private N6() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 6.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N6 instance = new N6();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 7. */
|
||||
public final class N7 extends Num implements Nat<N7> {
|
||||
private N7() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 7.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N7 instance = new N7();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 8. */
|
||||
public final class N8 extends Num implements Nat<N8> {
|
||||
private N8() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 8.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 8;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N8 instance = new N8();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 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 9. */
|
||||
public final class N9 extends Num implements Nat<N9> {
|
||||
private N9() {}
|
||||
|
||||
/**
|
||||
* The integer this class represents.
|
||||
*
|
||||
* @return The literal number 9.
|
||||
*/
|
||||
@Override
|
||||
public int getNum() {
|
||||
return 9;
|
||||
}
|
||||
|
||||
/** The singleton instance of this class. */
|
||||
public static final N9 instance = new N9();
|
||||
}
|
||||
Reference in New Issue
Block a user