Package oshi.hardware
Class PhysicalMemory
java.lang.Object
oshi.hardware.PhysicalMemory
@Immutable public class PhysicalMemory extends java.lang.Object
The PhysicalMemory class represents a physical memory device located on a
computer system and available to the operating system.
-
Constructor Summary
Constructors Constructor Description PhysicalMemory(java.lang.String bankLabel, long capacity, long clockSpeed, java.lang.String manufacturer, java.lang.String memoryType) -
Method Summary
Modifier and Type Method Description java.lang.StringgetBankLabel()The bank and/or slot label.longgetCapacity()The capacity of memory bank in bytes.longgetClockSpeed()The configured memory clock speed in hertz.java.lang.StringgetManufacturer()The manufacturer of the physical memory.java.lang.StringgetMemoryType()The type of physical memoryjava.lang.StringtoString()
-
Constructor Details
-
PhysicalMemory
public PhysicalMemory(java.lang.String bankLabel, long capacity, long clockSpeed, java.lang.String manufacturer, java.lang.String memoryType)
-
-
Method Details
-
getBankLabel
public java.lang.String getBankLabel()The bank and/or slot label.- Returns:
- the bank label
-
getCapacity
public long getCapacity()The capacity of memory bank in bytes.- Returns:
- the capacity
-
getClockSpeed
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
-
getManufacturer
public java.lang.String getManufacturer()The manufacturer of the physical memory.- Returns:
- the manufacturer
-
getMemoryType
public java.lang.String getMemoryType()The type of physical memory- Returns:
- the memory type
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-