Class DeviceMemoryStats


  • public class DeviceMemoryStats
    extends Object
    A representation of memory stats of device.
    • Constructor Detail

      • DeviceMemoryStats

        public DeviceMemoryStats()
        Instantiates DeviceMemoryStats object.
      • DeviceMemoryStats

        public DeviceMemoryStats​(long free,
                                 long used,
                                 long total)
        Creates DeviceMemoryStats object with given data.
        Parameters:
        free - free memory
        used - used memory
        total - total memory
    • Method Detail

      • getTotal

        public long getTotal()
        Get total memory of device.
        Returns:
        totalMmeory, total memory
      • getUsed

        public long getUsed()
        Get used memory of device.
        Returns:
        usedMemory, used memory
      • getFree

        public long getFree()
        Get free memory of device.
        Returns:
        freeMemory, free memory
      • setFree

        public void setFree​(long free)
        Set free memory of device.
        Parameters:
        free - free memory stats of device
      • setUsed

        public void setUsed​(long used)
        Set used memory of device.
        Parameters:
        used - used memory stats of device
      • setTotal

        public void setTotal​(long total)
        Set total memory of device.
        Parameters:
        total - total memory stats of device
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object