Interface SystemInfo.Builder

  • Enclosing interface:
    SystemInfo

    public static interface SystemInfo.Builder
    A builder of SystemInfo.
    • Method Detail

      • numOfCores

        SystemInfo.Builder numOfCores​(int numOfCores)
        Sets number of CPU cores.
        Parameters:
        numOfCores - number of CPU cores
        Returns:
        Builder object
      • numOfCpus

        SystemInfo.Builder numOfCpus​(int numOfCpus)
        Sets number of CPUs.
        Parameters:
        numOfCpus - number of CPUs
        Returns:
        Builder object
      • cpuSpeed

        SystemInfo.Builder cpuSpeed​(int cpuSpeedMhz)
        Sets CPU speed.
        Parameters:
        cpuSpeedMhz - CPU speed in Mhz
        Returns:
        Builder object
      • totalMemory

        SystemInfo.Builder totalMemory​(int totalMemoryMbytes)
        Sets total amount of memory.
        Parameters:
        totalMemoryMbytes - memory size in Mega Bytes
        Returns:
        Builder object
      • build

        SystemInfo build()
        Builds a SystemInfo object.
        Returns:
        SystemInfo object