Package edu.wpi.first.math
Interface Nat<T extends Num>
- Type Parameters:
T
- TheNum
this represents.
- All Known Implementing Classes:
N0
,N1
,N10
,N11
,N12
,N13
,N14
,N15
,N16
,N17
,N18
,N19
,N2
,N20
,N3
,N4
,N5
,N6
,N7
,N8
,N9
A natural number expressed as a java class.
The counterpart to
Num
that should be used as a concrete value.-
Method Summary
Modifier and TypeMethodDescriptionint
getNum()
The number this interface represents.N0()
Returns the Nat instance for 0.N1()
Returns the Nat instance for 1.N10()
Returns the Nat instance for 10.N11()
Returns the Nat instance for 11.N12()
Returns the Nat instance for 12.N13()
Returns the Nat instance for 13.N14()
Returns the Nat instance for 14.N15()
Returns the Nat instance for 15.N16()
Returns the Nat instance for 16.N17()
Returns the Nat instance for 17.N18()
Returns the Nat instance for 18.N19()
Returns the Nat instance for 19.N2()
Returns the Nat instance for 2.N20()
Returns the Nat instance for 20.N3()
Returns the Nat instance for 3.N4()
Returns the Nat instance for 4.N5()
Returns the Nat instance for 5.N6()
Returns the Nat instance for 6.N7()
Returns the Nat instance for 7.N8()
Returns the Nat instance for 8.N9()
Returns the Nat instance for 9.
-
Method Details
-
getNum
int getNum()The number this interface represents.- Returns:
- The number backing this value.
-
N0
Returns the Nat instance for 0.- Returns:
- The Nat instance for 0.
-
N1
Returns the Nat instance for 1.- Returns:
- The Nat instance for 1.
-
N2
Returns the Nat instance for 2.- Returns:
- The Nat instance for 2.
-
N3
Returns the Nat instance for 3.- Returns:
- The Nat instance for 3.
-
N4
Returns the Nat instance for 4.- Returns:
- The Nat instance for 4.
-
N5
Returns the Nat instance for 5.- Returns:
- The Nat instance for 5.
-
N6
Returns the Nat instance for 6.- Returns:
- The Nat instance for 6.
-
N7
Returns the Nat instance for 7.- Returns:
- The Nat instance for 7.
-
N8
Returns the Nat instance for 8.- Returns:
- The Nat instance for 8.
-
N9
Returns the Nat instance for 9.- Returns:
- The Nat instance for 9.
-
N10
Returns the Nat instance for 10.- Returns:
- The Nat instance for 10.
-
N11
Returns the Nat instance for 11.- Returns:
- The Nat instance for 11.
-
N12
Returns the Nat instance for 12.- Returns:
- The Nat instance for 12.
-
N13
Returns the Nat instance for 13.- Returns:
- The Nat instance for 13.
-
N14
Returns the Nat instance for 14.- Returns:
- The Nat instance for 14.
-
N15
Returns the Nat instance for 15.- Returns:
- The Nat instance for 15.
-
N16
Returns the Nat instance for 16.- Returns:
- The Nat instance for 16.
-
N17
Returns the Nat instance for 17.- Returns:
- The Nat instance for 17.
-
N18
Returns the Nat instance for 18.- Returns:
- The Nat instance for 18.
-
N19
Returns the Nat instance for 19.- Returns:
- The Nat instance for 19.
-
N20
Returns the Nat instance for 20.- Returns:
- The Nat instance for 20.
-