Package com.launchdarkly.sdk.android
Class LDUtil
- java.lang.Object
-
- com.launchdarkly.sdk.android.LDUtil
-
public class LDUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LDUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
sanitizeSpaces(java.lang.String s)
Replaces spaces with hyphens.static java.lang.String
validateStringValue(java.lang.String s)
-
-
-
Method Detail
-
validateStringValue
@Nullable public static java.lang.String validateStringValue(@NonNull java.lang.String s)
- Parameters:
s
- the string to validate- Returns:
- null if valid, otherwise string describing issue
-
sanitizeSpaces
public static java.lang.String sanitizeSpaces(java.lang.String s)
Replaces spaces with hyphens. In the future, if this function is made more generic, understand that customer data may already exist and changing this sanitization may have adverse consequences.- Parameters:
s
- the string to sanitize- Returns:
- the sanitized string
-
-