Class CleanStringProcessor

  • All Implemented Interfaces:
    AnswerProcessor

    public class CleanStringProcessor
    extends java.lang.Object
    implements AnswerProcessor
    Processor that removes trailing spaces and duplicated spaces.
    • Method Summary

      Modifier and Type Method Description
      Answer process​(Answer answer)
      Modify the entry and store the result in a new Answer object.
      • Methods inherited from class java.lang.Object

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

      • CleanStringProcessor

        public CleanStringProcessor()
    • Method Detail

      • process

        public Answer process​(Answer answer)
        Description copied from interface: AnswerProcessor
        Modify the entry and store the result in a new Answer object.
        Specified by:
        process in interface AnswerProcessor
        Parameters:
        answer - the given entry
        Returns:
        a new Answer object storing the computed result