Class StringUtils


  • public final class StringUtils
    extends java.lang.Object
    Internal utility methods for working with tag keys, tag values, and metric names.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private StringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean isPrintableChar​(char ch)  
      static boolean isPrintableString​(java.lang.String str)
      Determines whether the String contains only printable characters.
      • Methods inherited from class java.lang.Object

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

      • StringUtils

        private StringUtils()
    • Method Detail

      • isPrintableString

        public static boolean isPrintableString​(java.lang.String str)
        Determines whether the String contains only printable characters.
        Parameters:
        str - the String to be validated.
        Returns:
        whether the String contains only printable characters.
      • isPrintableChar

        private static boolean isPrintableChar​(char ch)