public class ReusableBitmap extends Object implements Poolable
Modifier and Type | Class and Description |
---|---|
static class |
ReusableBitmap.NullReusableBitmap
Singleton class to represent a null Bitmap.
|
Constructor and Description |
---|
ReusableBitmap(Bitmap bitmap) |
ReusableBitmap(Bitmap bitmap,
boolean reusable) |
Modifier and Type | Method and Description |
---|---|
void |
acquireReference() |
int |
getByteCount() |
int |
getLogicalHeight() |
int |
getLogicalWidth() |
int |
getOrientation() |
int |
getRefCount() |
boolean |
isEligibleForPooling() |
void |
releaseReference() |
void |
setLogicalHeight(int h) |
void |
setLogicalWidth(int w) |
void |
setOrientation(int orientation) |
String |
toString()
Returns a string representation of the object.
|
public final Bitmap bmp
public ReusableBitmap(Bitmap bitmap)
public ReusableBitmap(Bitmap bitmap, boolean reusable)
public boolean isEligibleForPooling()
isEligibleForPooling
in interface Poolable
public void setLogicalWidth(int w)
public void setLogicalHeight(int h)
public int getLogicalWidth()
public int getLogicalHeight()
public int getOrientation()
public void setOrientation(int orientation)
public int getByteCount()
public void acquireReference()
acquireReference
in interface Poolable
public void releaseReference()
releaseReference
in interface Poolable
public int getRefCount()
getRefCount
in interface Poolable
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())