Class EmptyTranslator

  • All Implemented Interfaces:
    Translator

    public class EmptyTranslator
    extends java.lang.Object
    implements Translator
    A translator that does not translate anything, but merely gives back what it recieves.

    Can be used for cases where translation is not necessary.

    Author:
    Lasse Poulsen
    • Constructor Summary

      Constructors 
      Constructor Description
      EmptyTranslator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String translate​(java.lang.String content)  
      • Methods inherited from class java.lang.Object

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

      • EmptyTranslator

        public EmptyTranslator()
    • Method Detail

      • translate

        public java.lang.String translate​(java.lang.String content)
        Specified by:
        translate in interface Translator