Package io.opencensus.internal
Class StringUtils
- java.lang.Object
-
- io.opencensus.internal.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 theString
contains only printable characters.
-
-
-
Method Detail
-
isPrintableString
public static boolean isPrintableString(java.lang.String str)
Determines whether theString
contains only printable characters.- Parameters:
str
- theString
to be validated.- Returns:
- whether the
String
contains only printable characters.
-
isPrintableChar
private static boolean isPrintableChar(char ch)
-
-