Class CPU

    • Constructor Detail

      • CPU

        public CPU()
    • Method Detail

      • setFrequency

        public void setFrequency​(String frequency)

        The CPU's frequency.

        Parameters:
        frequency - The CPU's frequency.
      • getFrequency

        public String getFrequency()

        The CPU's frequency.

        Returns:
        The CPU's frequency.
      • withFrequency

        public CPU withFrequency​(String frequency)

        The CPU's frequency.

        Parameters:
        frequency - The CPU's frequency.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setArchitecture

        public void setArchitecture​(String architecture)

        The CPU's architecture, for example x86 or ARM.

        Parameters:
        architecture - The CPU's architecture, for example x86 or ARM.
      • getArchitecture

        public String getArchitecture()

        The CPU's architecture, for example x86 or ARM.

        Returns:
        The CPU's architecture, for example x86 or ARM.
      • withArchitecture

        public CPU withArchitecture​(String architecture)

        The CPU's architecture, for example x86 or ARM.

        Parameters:
        architecture - The CPU's architecture, for example x86 or ARM.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setClock

        public void setClock​(Double clock)

        The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

        Parameters:
        clock - The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
      • getClock

        public Double getClock()

        The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

        Returns:
        The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
      • withClock

        public CPU withClock​(Double clock)

        The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

        Parameters:
        clock - The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object