Class ReplacePatternUtils


  • public class ReplacePatternUtils
    extends java.lang.Object
    ReplacePatternUtils
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplacePatternUtils​(java.util.List<java.lang.String> whiteList)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String replaceSharpByUnderscore​(java.lang.String textToReplace)
      Replace Sharp By Underscore
      java.lang.String replaceUnderscoreBySharp​(java.lang.String textToReplace)
      Replace Underscore By Sharp
      • Methods inherited from class java.lang.Object

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

      • ReplacePatternUtils

        public ReplacePatternUtils​(java.util.List<java.lang.String> whiteList)
        Constructor
        Parameters:
        whiteList - white list define in configuration file.
    • Method Detail

      • replaceUnderscoreBySharp

        public java.lang.String replaceUnderscoreBySharp​(java.lang.String textToReplace)
        Replace Underscore By Sharp
        Parameters:
        textToReplace - textToReplace
        Returns:
        the text replaced with sharp
      • replaceSharpByUnderscore

        public java.lang.String replaceSharpByUnderscore​(java.lang.String textToReplace)
        Replace Sharp By Underscore
        Parameters:
        textToReplace - textToReplace
        Returns:
        the text replaced with underscore