Package net.starype.quiz.api.parser
Class ExactEvaluatorMapper
- java.lang.Object
-
- net.starype.quiz.api.parser.ExactEvaluatorMapper
-
- All Implemented Interfaces:
ConfigMapper<PartialEvaluator>
public class ExactEvaluatorMapper extends java.lang.Object implements ConfigMapper<PartialEvaluator>
Mapper for theExactAnswerEvaluator
object
-
-
Constructor Summary
Constructors Constructor Description ExactEvaluatorMapper()
-
Method Summary
Modifier and Type Method Description java.lang.String
getMapperName()
PartialEvaluator
map(ReadableMap config)
Produce a result of a specific type.
-
-
-
Method Detail
-
getMapperName
public java.lang.String getMapperName()
- Specified by:
getMapperName
in interfaceConfigMapper<PartialEvaluator>
- Returns:
- the value that may match a key from a TOML configuration file
-
map
public PartialEvaluator 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 interfaceConfigMapper<PartialEvaluator>
- Parameters:
config
- the configuration object loaded from the file- Returns:
- a result representing the value
-
-