Package oshi.hardware

Class PhysicalMemory

java.lang.Object
oshi.hardware.PhysicalMemory

@Immutable public class PhysicalMemory extends Object
The PhysicalMemory class represents a physical memory device located on a computer system and available to the operating system.
  • Constructor Details Link icon

    • PhysicalMemory Link icon

      public PhysicalMemory(String bankLabel, long capacity, long clockSpeed, String manufacturer, String memoryType, String partNumber, String serialNumber)
  • Method Details Link icon

    • getBankLabel Link icon

      public String getBankLabel()
      The bank and/or slot label.
      Returns:
      the bank label
    • getCapacity Link icon

      public long getCapacity()
      The capacity of memory bank in bytes.
      Returns:
      the capacity
    • getClockSpeed Link icon

      public long getClockSpeed()
      The configured memory clock speed in hertz.

      For DDR memory, this is the data transfer rate, which is a multiple of the actual bus clock speed.

      Returns:
      the clock speed, if avaialable. If unknown, returns -1.
    • getManufacturer Link icon

      public String getManufacturer()
      The manufacturer of the physical memory.
      Returns:
      the manufacturer
    • getMemoryType Link icon

      public String getMemoryType()
      The type of physical memory
      Returns:
      the memory type
    • getPartNumber Link icon

      public String getPartNumber()
      The part number of the physical memory
      Returns:
      the part number
    • getSerialNumber Link icon

      public String getSerialNumber()
      The serial number of the physical memory
      Returns:
      the serial number
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object