001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005// THIS FILE WAS AUTO-GENERATED BY ./wpimath/generate_numbers.py. DO NOT MODIFY
006
007package edu.wpi.first.math.numbers;
008
009import edu.wpi.first.math.Nat;
010import edu.wpi.first.math.Num;
011
012/** A class representing the number 2. */
013public final class N2 extends Num implements Nat<N2> {
014  private N2() {}
015
016  /**
017   * The integer this class represents.
018   *
019   * @return The literal number 2.
020   */
021  @Override
022  public int getNum() {
023    return 2;
024  }
025
026  /** The singleton instance of this class. */
027  public static final N2 instance = new N2();
028}