Package io.opencensus.internal
Class StringUtils
- java.lang.Object
-
- io.opencensus.internal.StringUtils
-
public final class StringUtils extends java.lang.ObjectInternal utility methods for working with tag keys, tag values, and metric names.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleanisPrintableChar(char ch)static booleanisPrintableString(java.lang.String str)Determines whether theStringcontains only printable characters.
-
-
-
Method Detail
-
isPrintableString
public static boolean isPrintableString(java.lang.String str)
Determines whether theStringcontains only printable characters.- Parameters:
str- theStringto be validated.- Returns:
- whether the
Stringcontains only printable characters.
-
isPrintableChar
private static boolean isPrintableChar(char ch)
-
-