Package util

Class SchoolEnumUtil


  • public class SchoolEnumUtil
    extends java.lang.Object
    The SchoolEnumUtil provides utility functions for schools that camps are able to participate in
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Schools[] CoE
      Schools under College of Engineering
      static Schools[] CoHASS
      Schools under College of Humanities and Social Sciences
      static Schools[] CoS
      Schools under College of Science
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<Schools> allSchools()
      Return a list of schools
      static Schools convertToEnum​(java.lang.String input)
      Get a string input which can be converted to School enum variable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CoE

        public static final Schools[] CoE
        Schools under College of Engineering
      • CoHASS

        public static final Schools[] CoHASS
        Schools under College of Humanities and Social Sciences
      • CoS

        public static final Schools[] CoS
        Schools under College of Science
    • Constructor Detail

      • SchoolEnumUtil

        public SchoolEnumUtil()
        Construct an instance of SchoolEnumUtil
    • Method Detail

      • convertToEnum

        public static Schools convertToEnum​(java.lang.String input)
        Get a string input which can be converted to School enum variable
        Parameters:
        input - the string input of the school from csv file
        Returns:
        the school enum variable for code
      • allSchools

        public static java.util.List<Schools> allSchools()
        Return a list of schools
        Returns:
        all the schools that exists in NTU