com.bumptech.glide.util
Class Util
java.lang.Object
com.bumptech.glide.util.Util
public class Util
- extends Object
A collection of assorted utility classes.
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
sha256BytesToHex
public static String sha256BytesToHex(byte[] bytes)
sha1BytesToHex
public static String sha1BytesToHex(byte[] bytes)
getSize
public static int getSize(Bitmap bitmap)
- Returns the in memory size of the given
Bitmap.
assertMainThread
public static void assertMainThread()
assertBackgroundThread
public static void assertBackgroundThread()
isOnMainThread
public static boolean isOnMainThread()
isOnBackgroundThread
public static boolean isOnBackgroundThread()
createQueue
public static <T> Queue<T> createQueue(int size)