Interface Nat<T extends Num>

Type Parameters:
T - The Num 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

public interface Nat<T extends Num>
A natural number expressed as a java class. The counterpart to Num that should be used as a concrete value.
  • Method Summary

    Modifier and Type Method Description
    int getNum()
    The number this interface represents.
    static Nat<N0> N0()
    Returns the Nat instance for 0.
    static Nat<N1> N1()
    Returns the Nat instance for 1.
    static Nat<N10> N10()
    Returns the Nat instance for 10.
    static Nat<N11> N11()
    Returns the Nat instance for 11.
    static Nat<N12> N12()
    Returns the Nat instance for 12.
    static Nat<N13> N13()
    Returns the Nat instance for 13.
    static Nat<N14> N14()
    Returns the Nat instance for 14.
    static Nat<N15> N15()
    Returns the Nat instance for 15.
    static Nat<N16> N16()
    Returns the Nat instance for 16.
    static Nat<N17> N17()
    Returns the Nat instance for 17.
    static Nat<N18> N18()
    Returns the Nat instance for 18.
    static Nat<N19> N19()
    Returns the Nat instance for 19.
    static Nat<N2> N2()
    Returns the Nat instance for 2.
    static Nat<N20> N20()
    Returns the Nat instance for 20.
    static Nat<N3> N3()
    Returns the Nat instance for 3.
    static Nat<N4> N4()
    Returns the Nat instance for 4.
    static Nat<N5> N5()
    Returns the Nat instance for 5.
    static Nat<N6> N6()
    Returns the Nat instance for 6.
    static Nat<N7> N7()
    Returns the Nat instance for 7.
    static Nat<N8> N8()
    Returns the Nat instance for 8.
    static Nat<N9> N9()
    Returns the Nat instance for 9.
  • Method Details

    • getNum

      int getNum()
      The number this interface represents.
      Returns:
      The number backing this value.
    • N0

      static Nat<N0> N0()
      Returns the Nat instance for 0.
      Returns:
      The Nat instance for 0.
    • N1

      static Nat<N1> N1()
      Returns the Nat instance for 1.
      Returns:
      The Nat instance for 1.
    • N2

      static Nat<N2> N2()
      Returns the Nat instance for 2.
      Returns:
      The Nat instance for 2.
    • N3

      static Nat<N3> N3()
      Returns the Nat instance for 3.
      Returns:
      The Nat instance for 3.
    • N4

      static Nat<N4> N4()
      Returns the Nat instance for 4.
      Returns:
      The Nat instance for 4.
    • N5

      static Nat<N5> N5()
      Returns the Nat instance for 5.
      Returns:
      The Nat instance for 5.
    • N6

      static Nat<N6> N6()
      Returns the Nat instance for 6.
      Returns:
      The Nat instance for 6.
    • N7

      static Nat<N7> N7()
      Returns the Nat instance for 7.
      Returns:
      The Nat instance for 7.
    • N8

      static Nat<N8> N8()
      Returns the Nat instance for 8.
      Returns:
      The Nat instance for 8.
    • N9

      static Nat<N9> N9()
      Returns the Nat instance for 9.
      Returns:
      The Nat instance for 9.
    • N10

      static Nat<N10> N10()
      Returns the Nat instance for 10.
      Returns:
      The Nat instance for 10.
    • N11

      static Nat<N11> N11()
      Returns the Nat instance for 11.
      Returns:
      The Nat instance for 11.
    • N12

      static Nat<N12> N12()
      Returns the Nat instance for 12.
      Returns:
      The Nat instance for 12.
    • N13

      static Nat<N13> N13()
      Returns the Nat instance for 13.
      Returns:
      The Nat instance for 13.
    • N14

      static Nat<N14> N14()
      Returns the Nat instance for 14.
      Returns:
      The Nat instance for 14.
    • N15

      static Nat<N15> N15()
      Returns the Nat instance for 15.
      Returns:
      The Nat instance for 15.
    • N16

      static Nat<N16> N16()
      Returns the Nat instance for 16.
      Returns:
      The Nat instance for 16.
    • N17

      static Nat<N17> N17()
      Returns the Nat instance for 17.
      Returns:
      The Nat instance for 17.
    • N18

      static Nat<N18> N18()
      Returns the Nat instance for 18.
      Returns:
      The Nat instance for 18.
    • N19

      static Nat<N19> N19()
      Returns the Nat instance for 19.
      Returns:
      The Nat instance for 19.
    • N20

      static Nat<N20> N20()
      Returns the Nat instance for 20.
      Returns:
      The Nat instance for 20.