public class DeviceMemoryStats extends Object
| Constructor and Description |
|---|
DeviceMemoryStats()
Instantiates DeviceMemoryStats object.
|
DeviceMemoryStats(long free,
long used,
long total)
Creates DeviceMemoryStats object with given data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getFree()
Get free memory of device.
|
long |
getTotal()
Get total memory of device.
|
long |
getUsed()
Get used memory of device.
|
int |
hashCode() |
void |
setFree(long free)
Set free memory of device.
|
void |
setTotal(long total)
Set total memory of device.
|
void |
setUsed(long used)
Set used memory of device.
|
String |
toString() |
public DeviceMemoryStats()
public DeviceMemoryStats(long free,
long used,
long total)
free - free memoryused - used memorytotal - total memorypublic long getTotal()
public long getUsed()
public long getFree()
public void setFree(long free)
free - free memory stats of devicepublic void setUsed(long used)
used - used memory stats of devicepublic void setTotal(long total)
total - total memory stats of device