Class ProgramId

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public class ProgramId
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Represents a unique program id

    param: semesterId semesterId for Program param: programNumber programNumber number in pattern P followed by 3 digit number

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgramId​(SemesterId semesterId, int programNumber)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ProgramId apply​(java.lang.String programId)  
      int programNumber()  
      SemesterId semesterId()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
    • Constructor Detail

      • ProgramId

        public ProgramId​(SemesterId semesterId,
                         int programNumber)
    • Method Detail

      • apply

        public static ProgramId apply​(java.lang.String programId)
      • programNumber

        public int programNumber()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object