Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. package edu.wpi.first.wpiutil.math.numbers;
  2.  
  3. import edu.wpi.first.wpiutil.math.Nat;
  4. import edu.wpi.first.wpiutil.math.Num;
  5.  
  6. /**
  7. * A class representing the number {0}.
  8. */
  9. public final class N{0} extends Num implements Nat<N{0}> {{
  10. private N{0}() {{
  11. }}
  12.  
  13. /**
  14. * The integer this class represents.
  15. *
  16. * @return The literal number {0}.
  17. */
  18. @Override
  19. public int getNum() {{
  20. return {0};
  21. }}
  22.  
  23. /**
  24. * The singleton instance of this class.
  25. */
  26. public static final N{0} instance = new N{0}();
  27. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement