Class N0

  • All Implemented Interfaces:
    Nat<N0>

    public final class N0
    extends Num
    implements Nat<N0>
    A class representing the number 0.
    • Field Detail

      • instance

        public static final N0 instance
        The singleton instance of this class.
    • Method Detail

      • getNum

        public int getNum()
        The integer this class represents.
        Specified by:
        getNum in interface Nat<N0>
        Specified by:
        getNum in class Num
        Returns:
        The literal number 0.