public final class KitUtils
extends java.lang.Object
Constructor and Description |
---|
KitUtils() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
hashFnv1a(byte[] bytes)
Hash using the Fnv1a algorithm.
|
static boolean |
isServiceAvailable(android.content.Context context,
java.lang.Class<?> service)
Check if the given Service class is present in the hosting app's AndroidManifest.
|
static java.lang.String |
join(java.util.List<java.lang.String> list)
Combine the given list into a single string separated by a comma.
|
static java.lang.String |
join(java.util.List<java.lang.String> list,
java.lang.String delimiter)
Combine the given list into a single string separated by the given delimiter.
|
static java.lang.String |
sanitizeAttributeKey(java.lang.String key)
mParticle attribute keys defined by the `MParticle.UserAttributes` interface are
preceded by a dollar-sign ie `"$FirstName"`.
|
public static java.lang.String sanitizeAttributeKey(java.lang.String key)
key
- public static java.math.BigInteger hashFnv1a(byte[] bytes)
bytes
- public static java.lang.String join(java.util.List<java.lang.String> list)
list
- public static java.lang.String join(java.util.List<java.lang.String> list, java.lang.String delimiter)
list
- delimiter
- public static boolean isServiceAvailable(android.content.Context context, java.lang.Class<?> service)
context
- service
-