Class DifficultyMapper

    • Method Summary

      Modifier and Type Method Description
      java.lang.String getMapperName()  
      QuestionDifficulty map​(ReadableMap config)
      Produce a result of a specific type.
      • Methods inherited from class java.lang.Object

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

      • DifficultyMapper

        public DifficultyMapper​(java.lang.String name,
                                QuestionDifficulty difficulty)
    • Method Detail

      • map

        public QuestionDifficulty map​(ReadableMap config)
        Description copied from interface: ConfigMapper
        Produce a result of a specific type.
        The configuration object may be used to gather additional information required to construct the object.
        Specified by:
        map in interface ConfigMapper<QuestionDifficulty>
        Parameters:
        config - the configuration object loaded from the file
        Returns:
        a result representing the value