|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.vm.MemStats
net.rim.device.api.system.MemoryStats
public final class MemoryStats
Class used to provide utility methods for reporting on available device memory/storage statistics.
Note that the precise behaviour of each of these methods varies with the
type of memory/storage the object has been created to report upon. Typcailly,
an application uses the static methods provided by the Memory
class
to retrieve a MemStats object appropriate for a particular purpose.
Constructor Summary | ||
---|---|---|
MemoryStats()
Constructs a new MemoryStats object. |
Method Summary | ||
---|---|---|
int |
getAllocated()
Returns the amount of memory/storage already allocated. |
|
int |
getFree()
Returns the amount of memory/storage still free and available for use. |
|
int |
getObjectCount()
Returns the number of objects occupying memory/storage type. |
|
int |
getObjectSize()
Returns the total size of objects occupying memory/storage type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryStats()
MemoryStats
object.
Method Detail |
---|
public int getAllocated()
getAllocated
in class MemStats
public int getFree()
getFree
in class MemStats
public int getObjectSize()
getObjectSize
in class MemStats
public int getObjectCount()
getObjectCount
in class MemStats
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal