Class DeviceCpuStats


  • public class DeviceCpuStats
    extends Object
    A representation of cpu stats of device.
    • Constructor Detail

      • DeviceCpuStats

        public DeviceCpuStats()
        Instantiates DeviceCpuStats object with default value.
      • DeviceCpuStats

        public DeviceCpuStats​(float used)
        Creates DeviceCpuStats object with given value.
        Parameters:
        used - cpu usage of device
    • Method Detail

      • getUsed

        public float getUsed()
        Get cpu usage of device.
        Returns:
        usedCpu, cpu usage stats of device
      • setUsed

        public void setUsed​(float used)
        Set cpu usage of device.
        Parameters:
        used - cpu usage of device
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object