Class GradeMappingDefinition

  • All Implemented Interfaces:
    Serializable

    public class GradeMappingDefinition
    extends Object
    implements Serializable
    DTO to wrap the persistent GradeMapping and provides utility methods for dealing with grade mappings
    See Also:
    Serialized Form
    • Method Detail

      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getGradeMap

        public Map<String,​Double> getGradeMap()
        Get the current grade mappings
        Returns:
      • setGradeMap

        public void setGradeMap​(Map<String,​Double> gradeMap)
      • getDefaultBottomPercents

        public Map<String,​Double> getDefaultBottomPercents()
        Get the default grade mappings
        Returns:
      • setDefaultBottomPercents

        public void setDefaultBottomPercents​(Map<String,​Double> defaultBottomPercents)
      • sortGradeMapping

        public static Map<String,​Double> sortGradeMapping​(Map<String,​Double> gradeMap)
        Handles the sorting of a grade mapping.
        Parameters:
        gradeMap - the grademap to be sorted
        Returns:
        LinkedHashMap of sorted entries
      • isModified

        public boolean isModified()
        Determines if the grade mapping is different to the defaults
        Returns: