Class StringUtils


  • @Immutable
    public final class StringUtils
    extends Object
    Internal utility methods for working with attribute keys, attribute values, and metric names.
    • Field Detail

    • Method Detail

      • isPrintableString

        public static boolean isPrintableString​(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​(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.