Class StringUtil


  • public class StringUtil
    extends java.lang.Object
    Common functionality relate to String processing.
    Since:
    1.2
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String replaceAll​(java.lang.String source, java.lang.String toReplace, java.lang.String replacement)
      Replaces all occurences of a pattern within a String.
      • Methods inherited from class java.lang.Object

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

      • StringUtil

        public StringUtil()
    • Method Detail

      • replaceAll

        public static java.lang.String replaceAll​(java.lang.String source,
                                                  java.lang.String toReplace,
                                                  java.lang.String replacement)
        Replaces all occurences of a pattern within a String.
        Parameters:
        source - The source string.
        toReplace - The character to replace.
        replacement - The replacement.
        Returns:
        The new String with characters replaced.