Package com.launchdarkly.sdk.android
Class LDUtil
java.lang.Object
com.launchdarkly.sdk.android.LDUtil
Various utility functions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Replaces spaces with hyphens.static String
urlSafeBase64HashedContextId
(LDContext context) static String
-
Constructor Details
-
LDUtil
public LDUtil()
-
-
Method Details
-
validateStringValue
- Parameters:
s
- the string to validate- Returns:
- null if valid, otherwise string describing issue
-
sanitizeSpaces
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
-
urlSafeBase64HashedContextId
-