Class DeviceCpuStats


  • public class DeviceCpuStats
    extends java.lang.Object
    A representation of cpu stats of device.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeviceCpuStats()
      Instantiates DeviceCpuStats object with default value.
      DeviceCpuStats​(float used)
      Creates DeviceCpuStats object with given value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      float getUsed()
      Get cpu usage of device.
      int hashCode()  
      void setUsed​(float used)
      Set cpu usage of device.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object