public final class Utility extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_STREAM_BUFFER_SIZE |
| Constructor and Description |
|---|
Utility() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ArrayList<T> |
arrayList(T... ts) |
static android.net.Uri |
buildUri(String authority,
String path,
android.os.Bundle parameters) |
static void |
clearFacebookCookies(android.content.Context context) |
static void |
closeQuietly(Closeable closeable) |
static void |
disconnectQuietly(URLConnection connection) |
static String |
getMetadataApplicationId(android.content.Context context) |
static Object |
getStringPropertyAsJSON(org.json.JSONObject jsonObject,
String key,
String nonJSONPropertyKey) |
static <T> boolean |
isNullOrEmpty(Collection<T> c) |
static boolean |
isNullOrEmpty(String s) |
static <T> boolean |
isSubset(Collection<T> subset,
Collection<T> superset) |
static void |
logd(String tag,
Exception e) |
static void |
logd(String tag,
String msg) |
static void |
putObjectInBundle(android.os.Bundle bundle,
String key,
Object value) |
static boolean |
queryAppAttributionSupportAndWait(String applicationId) |
static String |
readStreamToString(InputStream inputStream) |
static boolean |
stringsEqualOrEmpty(String a,
String b) |
static <T> Collection<T> |
unmodifiableCollection(T... ts) |
public static final int DEFAULT_STREAM_BUFFER_SIZE
public static <T> boolean isSubset(Collection<T> subset, Collection<T> superset)
public static <T> boolean isNullOrEmpty(Collection<T> c)
public static boolean isNullOrEmpty(String s)
public static <T> Collection<T> unmodifiableCollection(T... ts)
public static <T> ArrayList<T> arrayList(T... ts)
public static android.net.Uri buildUri(String authority, String path, android.os.Bundle parameters)
public static void putObjectInBundle(android.os.Bundle bundle,
String key,
Object value)
public static void closeQuietly(Closeable closeable)
public static void disconnectQuietly(URLConnection connection)
public static String getMetadataApplicationId(android.content.Context context)
public static Object getStringPropertyAsJSON(org.json.JSONObject jsonObject, String key, String nonJSONPropertyKey) throws org.json.JSONException
org.json.JSONExceptionpublic static String readStreamToString(InputStream inputStream) throws IOException
IOExceptionpublic static void clearFacebookCookies(android.content.Context context)
public static boolean queryAppAttributionSupportAndWait(String applicationId)
Copyright © 2013. All Rights Reserved.