com.bumptech.glide.util
Class Util

java.lang.Object
  extended by com.bumptech.glide.util.Util

public class Util
extends Object

A collection of assorted utility classes.


Constructor Summary
Util()
           
 
Method Summary
static void assertBackgroundThread()
           
static void assertMainThread()
           
static
<T> Queue<T>
createQueue(int size)
           
static int getSize(Bitmap bitmap)
          Returns the in memory size of the given Bitmap.
static boolean isOnBackgroundThread()
           
static boolean isOnMainThread()
           
static String sha1BytesToHex(byte[] bytes)
           
static String sha256BytesToHex(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

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)