Class StringUtils


  • @Immutable
    public final class StringUtils
    extends java.lang.Object
    Internal utility methods for working with attribute keys, attribute values, and metric names.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isPrintableString​(java.lang.String str)
      Determines whether the String contains only printable characters.
      static boolean isValidMetricName​(java.lang.String metricName)
      Determines whether the metric name contains a valid metric name.
      • Methods inherited from class java.lang.Object

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

    • 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.
      • isValidMetricName

        public static boolean isValidMetricName​(java.lang.String metricName)
        Determines whether the metric name contains a valid metric name.
        Parameters:
        metricName - the metric name to be validated.
        Returns:
        whether the metricName contains a valid name.