Class N4

  • All Implemented Interfaces:
    Nat<N4>

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

      • instance

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

      • getNum

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