com.bumptech.glide.load.resource.gifbitmap
Class GifBitmapWrapper

java.lang.Object
  extended by com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapper

public class GifBitmapWrapper
extends Object

A wrapper that contains either an Bitmap resource or an GifDrawable resource.


Constructor Summary
GifBitmapWrapper(Resource<Bitmap> bitmapResource, Resource<GifDrawable> gifResource)
           
 
Method Summary
 Resource<Bitmap> getBitmapResource()
          Returns the wrapped Bitmap resource if it exists, or null.
 Resource<GifDrawable> getGifResource()
          Returns the wrapped GifDrawable resource if it exists, or null.
 int getSize()
          Returns the size of the wrapped resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifBitmapWrapper

public GifBitmapWrapper(Resource<Bitmap> bitmapResource,
                        Resource<GifDrawable> gifResource)
Method Detail

getSize

public int getSize()
Returns the size of the wrapped resource.


getBitmapResource

public Resource<Bitmap> getBitmapResource()
Returns the wrapped Bitmap resource if it exists, or null.


getGifResource

public Resource<GifDrawable> getGifResource()
Returns the wrapped GifDrawable resource if it exists, or null.